aboutsummaryrefslogtreecommitdiffstats
path: root/community/libretro-desmume/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-01-03 19:25:15 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-01-03 20:19:33 +0100
commit4df37c07c7639e9831fb82bf160a683f245ba4dd (patch)
tree1acec02ba40283fd99914b6cf64bc43492a7ad52 /community/libretro-desmume/APKBUILD
parent5750e15c3e564876a04d5f60c1e66bde2817d0ae (diff)
downloadaports-4df37c07c7639e9831fb82bf160a683f245ba4dd.tar.bz2
aports-4df37c07c7639e9831fb82bf160a683f245ba4dd.tar.xz
community/libretro-desmume: move from testing
Diffstat (limited to 'community/libretro-desmume/APKBUILD')
-rw-r--r--community/libretro-desmume/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/libretro-desmume/APKBUILD b/community/libretro-desmume/APKBUILD
new file mode 100644
index 0000000000..b4607b146d
--- /dev/null
+++ b/community/libretro-desmume/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=libretro-desmume
+_pkgname=desmume
+pkgver=0.9.4_git20190727
+pkgrel=0
+_commit="c5a899af82854f71ba7654d8af223aef17ca2bba"
+arch="all !s390x !ppc64le"
+url="https://github.com/libretro/desmume"
+pkgdesc="Nintendo DS core for libretro"
+license="GPL-2.0-or-later"
+makedepends="libpcap-dev mesa-dev"
+source="$pkgname-$_commit.tar.gz::https://github.com/libretro/$_pkgname/archive/$_commit.tar.gz"
+builddir="$srcdir/$_pkgname-$_commit"
+options="!check" # No tests
+
+build() {
+ cd "$builddir"/desmume/src/frontend/libretro
+ case "$CARCH" in
+ x86|x86_64)
+ DESMUME_JIT=1 make
+ ;;
+ armhf|armv7|aarch64)
+ DESMUME_JIT=0 DESMUME_JIT_ARM=1 make
+ ;;
+ esac
+}
+
+package() {
+ install -Dm644 "$builddir"/desmume/src/frontend/libretro/desmume_libretro.so \
+ "$pkgdir"/usr/lib/libretro/desmume_libretro.so
+}
+
+sha512sums="40c40eb844cc38953b40289237c0be022b6b2fa5fce0538f8b283ce62e933a761b0ec02255c6ba3be2745ad7be0b0ff96614794da32d9e625e1b77eb44ab5776 libretro-desmume-c5a899af82854f71ba7654d8af223aef17ca2bba.tar.gz"