aboutsummaryrefslogtreecommitdiffstats
path: root/community/libretro-mupen64plus/APKBUILD
blob: c1d3a0ce1aae8d2bf4765fc75a610bec2672feaa (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libretro-mupen64plus
pkgver=0_git20191209
pkgrel=0
_commit="39048f20d0a28e906095a744f1b1553dfb16c7df"
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/mupen64plus-libretro-nx/archive/$_commit.tar.gz
	musl-incompatibility.patch"
builddir="$srcdir/mupen64plus-libretro-nx-$_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="172f5f5f7024078f891368a388e482d917c6f1db276547e09ac5836eefa438a74fd0f15321ff5f84b92a9d623bd8e934cbfb7f72d215cdf7651242fadd2d0383  libretro-mupen64plus-0_git20191209.tar.gz
8680a71cbecd1dfc30e1150d0cf258b20b928aa4eff341087a031c72459fc8a11415ebc5c8ff4fdd5b43915a6450f4dcad1aa9fb7ecbaceeed62aec3c45b5761  musl-incompatibility.patch"