aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snes9x
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2018-04-23 18:29:03 +0300
committerFrancesco Colista <fcolista@alpinelinux.org>2018-05-08 08:53:14 +0000
commit5a19846368d131841ca6f2cb98ae5ea4823ede18 (patch)
tree1eb600b5873755d346553ced9937739a219f332b /testing/snes9x
parentec94f0e080e1510c1a97ae0e6650bfb77882330a (diff)
downloadaports-5a19846368d131841ca6f2cb98ae5ea4823ede18.tar.bz2
aports-5a19846368d131841ca6f2cb98ae5ea4823ede18.tar.xz
testing/snes9x: new aport
http://www.snes9x.com Super NES Emulator
Diffstat (limited to 'testing/snes9x')
-rw-r--r--testing/snes9x/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/snes9x/APKBUILD b/testing/snes9x/APKBUILD
new file mode 100644
index 0000000000..29c6ad1a4c
--- /dev/null
+++ b/testing/snes9x/APKBUILD
@@ -0,0 +1,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.tx
+}
+
+sha512sums="61d1d6f9c1fc4fbf6253ac7a7d214c771563d7d60238197b2f1525a58f8f9011446f400767d39ec464c69d80574a7dcd78557c8f47605df992af28cb107c0f6e snes9x-1.55.tar.gz"