aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libretro-desmume/APKBUILD
blob: b4607b146dd74c9f3ba9a60118b3a8c4ce3679f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"