aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snes9x/APKBUILD
blob: 7457571d866806a510a5584ff5ea1ee5d403196a (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=snes9x
pkgver=1.55
pkgrel=0
pkgdesc="Super NES Emulator"
url="http://www.snes9x.com"
arch="all"
license="custom"
makedepends="nasm autoconf automake libpng-dev zlib-dev libxml2-dev
	alsa-lib-dev minizip-dev portaudio-dev gtk+3.0-dev sdl-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}git/${pkgname}/archive/${pkgver}.tar.gz"

prepare() {
	cd "$builddir"
	default_prepare
	cd gtk
	./autogen.sh
}

check() {
	cd "$builddir"/gtk
	make check
}

build() {
	cd "$builddir"/gtk
	export ZLIB=1
	export UNZIP_SUPPORT=1
	export JMA_SUPPORT=1
	export RIGHTSHIFT_IS_SAR=1

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-netplay \
		--with-opengl \
		--with-gtk3 \
		--without-pulseaudio
	make
}

package() {
	cd "$builddir"/gtk
	make DESTDIR="$pkgdir" install
	ln -s snes9x-gtk "$pkgdir"/usr/bin/snes9x
	install -D -m644 "$builddir"/docs/snes9x-license.txt "$pkgdir"/usr/share/doc/${pkgname}/snes9x-license.txt
}

sha512sums="61d1d6f9c1fc4fbf6253ac7a7d214c771563d7d60238197b2f1525a58f8f9011446f400767d39ec464c69d80574a7dcd78557c8f47605df992af28cb107c0f6e  snes9x-1.55.tar.gz"