testing/tinyemu: new aport

This commit is contained in:
Siva Mahadevan 2025-02-24 09:14:54 -05:00 committed by omni
parent 6aed40fc07
commit 2d4faf13f5
2 changed files with 65 additions and 0 deletions

33
testing/tinyemu/APKBUILD Normal file
View File

@ -0,0 +1,33 @@
# 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
"

View File

@ -0,0 +1,32 @@
From 59fc77aa4dc09d431f5e99f64a3e03bf8e5155b9 Mon Sep 17 00:00:00 2001
From: Siva Mahadevan <me@svmhdvn.name>
Date: Mon, 24 Feb 2025 22:33:33 -0500
Subject: [PATCH] undefine extra features
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 390ae37..aa15543 100644
--- a/Makefile
+++ b/Makefile
@@ -24,12 +24,12 @@
# if set, network filesystem is enabled. libcurl and libcrypto
# (openssl) must be installed.
-CONFIG_FS_NET=y
+#CONFIG_FS_NET=y
# SDL support (optional)
-CONFIG_SDL=y
+#CONFIG_SDL=y
# if set, compile the 128 bit emulator. Note: the 128 bit target does
# not compile if gcc does not support the int128 type (32 bit hosts).
-CONFIG_INT128=y
+#CONFIG_INT128=y
# build x86 emulator
CONFIG_X86EMU=y
# win32 build (not usable yet)
--
2.48.1