aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libretro-mupen64plus/APKBUILD
blob: 0c4212d6ab1043b759164fbf4b4946efd98ac193 (plain)
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
35
36
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libretro-mupen64plus
_pkgname=mupen64plus-libretro-nx
pkgver=0_git20190625
pkgrel=0
_commit="b31459d1e9b1bc1cf93d3577e185fe8d4198a978"
arch="x86_64 aarch64" # Seems to be broken on non 64-bit platforms
url="https://github.com/libretro/mupen64plus-libretro-nx"
pkgdesc="libretro port of Mupen64 Plus with GLideN64"
license="GPL-2.0-or-later"
makedepends="mesa-dev zlib-dev libpng-dev nasm"
source="$pkgname-$pkgver.tar.gz::https://github.com/libretro/$_pkgname/archive/$_commit.tar.gz
	musl-incompatibility.patch"
builddir="$srcdir/$_pkgname-$_commit"
options="!check" # No tests

build() {
	case "$CARCH" in
		x86)
			WITH_DYNAREC=x86 make
			;;
		x86_64)
			WITH_DYNAREC=x86_64 make
			;;
		armhf|armv7|aarch64)
			WITH_DYNAREC=arm make
			;;
	esac
}

package() {
	install -Dm644 mupen64plus_next_libretro.so "$pkgdir"/usr/lib/libretro/mupen64plus_next_libretro.so
}

sha512sums="f098f2535404ce6703d0eab656c2d4799826e032870cc2f4cb59ec68f4f95b69e4300a9309e968eae0a856536d900a578b51f6f0093ed57e1d42b9ad271d4578  libretro-mupen64plus-0_git20190625.tar.gz
8680a71cbecd1dfc30e1150d0cf258b20b928aa4eff341087a031c72459fc8a11415ebc5c8ff4fdd5b43915a6450f4dcad1aa9fb7ecbaceeed62aec3c45b5761  musl-incompatibility.patch"