aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libretro-flycast/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libretro-flycast/APKBUILD')
-rw-r--r--testing/libretro-flycast/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/libretro-flycast/APKBUILD b/testing/libretro-flycast/APKBUILD
new file mode 100644
index 0000000000..4a383cf883
--- /dev/null
+++ b/testing/libretro-flycast/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: David Demelier <markand@malikania.fr>
+# Maintainer: David Demelier <markand@malikania.fr>
+pkgname=libretro-flycast
+pkgver=0_git20210506
+pkgrel=0
+_commit="6f27e7121d2b9f2c084d18219a9e439c403a1b89"
+pkgdesc="libretro core for flycast"
+url="https://github.com/libretro/flycast"
+arch="x86_64 aarch64"
+license="GPL-2.0-only"
+makedepends="libzip-dev mesa-dev miniupnpc-dev zlib-dev"
+source="$pkgname-$_commit.tar.gz::https://github.com/libretro/flycast/archive/$_commit.tar.gz
+ patch-unbundle.patch
+ "
+builddir="$srcdir/flycast-$_commit"
+options="!check" # No tests
+
+case $CARCH in
+aarch64)
+ _args="WITH_DYNAREC=arm64 HOST_CPU_FLAGS=-DTARGET_LINUX_ARMv8" ;;
+arm*)
+ _args="WITH_DYNAREC=arm" ;;
+esac
+
+if [ "$CARCH" != "x86" ]; then
+ _args="$_args HAVE_GENERIC_JIT=0 HAVE_VULKAN=0"
+fi
+
+build() {
+ rm -rf core/deps/libzip
+ rm -rf core/deps/miniupnpc
+ rm -rf core/deps/zlib
+ make $_args \
+ HAVE_LTCG=0 \
+ SYSTEM_LIBZIP=1 \
+ SYSTEM_ZLIB=1
+}
+
+package() {
+ install -Dm644 flycast_libretro.so "$pkgdir"/usr/lib/libretro/flycast_libretro.so
+}
+
+sha512sums="6f58502440035df11f37ba4b5e579fd458c16bb3db56d5bb5ba85b80ed67ac9361508bd4ee52d279ea06a860dcb02aaa0d92221b000d51f968f01da2c7aa99f1 libretro-flycast-6f27e7121d2b9f2c084d18219a9e439c403a1b89.tar.gz
+98edf29148cf990de8ce1c1a15548e122ce30944645d9b92715fe3c86e021439fdeea1dabacbcbff46de211b5c2875bfc330d5a602f59498bbe745708a3d1e15 patch-unbundle.patch"