mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-30 19:01:45 +02:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
# Contributor: Siva Mahadevan <me@svmhdvn.name>
|
|
# Maintainer: Siva Mahadevan <me@svmhdvn.name>
|
|
pkgname=tinyemu
|
|
pkgver=2019.12.21
|
|
pkgrel=0
|
|
pkgdesc="TinyEMU is a system emulator for the RISC-V and x86 architectures."
|
|
url="https://bellard.org/tinyemu/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="linux-headers"
|
|
options="!check" # no test suite
|
|
_realver="${pkgver//./-}"
|
|
source="https://bellard.org/tinyemu/tinyemu-$_realver.tar.gz
|
|
undefine-extra-features.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$_realver"
|
|
|
|
build() {
|
|
# 32-bit archs do not have int128 support
|
|
case "$CARCH" in
|
|
armhf|armv7|x86) make ;;
|
|
*) make CONFIG_INT128=y ;;
|
|
esac
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
make DESTDIR="$pkgdir" bindir=/usr/bin/ install
|
|
}
|
|
sha512sums="
|
|
21656acae4854b5893e8413390191b24e0686a6071ffbb90feb6aeb8d1a0ed1f471ff35813fabc5414318672658aacbb00108f647dee9c8d95242a6b73c4ba60 tinyemu-2019-12-21.tar.gz
|
|
faf36d15dfacc014b2bf8fed2443ad64c40c07a462f42efad9bffefd0b73837234985d4e150eaf239c9295f7ced812f17287243ca414f87f597211c59d4b3243 undefine-extra-features.patch
|
|
"
|