Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/snes9x: new aport

From: Taner Tas <taner76_at_gmail.com>
Date: Fri, 2 Mar 2018 15:20:17 +0000

---
 testing/snes9x/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 testing/snes9x/APKBUILD
diff --git a/testing/snes9x/APKBUILD b/testing/snes9x/APKBUILD
new file mode 100644
index 0000000..0da8b81
--- /dev/null
+++ b/testing/snes9x/APKBUILD
_at_@ -0,0 +1,52 @@
+# Contributor: Taner Tas <taner76_at_gmail.com>
+# Maintainer: Taner Tas <taner76_at_gmail.com>
+pkgname=snes9x
+pkgver=1.55
+pkgrel=0
+pkgdesc="Super NES Emulator"
+url="http://www.snes9x.com"
+arch="all"
+license="LGPL-2.1-only"
+makedepends="nasm clang-dev mesa-dev libpng-dev zlib-dev libxv-dev mesa-dev libxml2-dev \
+	libxrandr-dev alsa-lib-dev minizip-dev portaudio-dev gtk+3.0-dev sdl-dev"
+subpackages="$pkgname-lang"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}git/${pkgname}/archive/${pkgver}.tar.gz"
+
+prepare() {
+	default_prepare
+}
+
+check() {
+	cd "$builddir"/gtk
+	make check
+}
+
+build() {
+	cd "$builddir"
+	export CC="clang"
+	export CXX="clang++"
+	export ZLIB=1
+	export UNZIP_SUPPORT=1
+	export JMA_SUPPORT=1
+	export RIGHTSHIFT_IS_SAR=1
+
+	cd gtk
+	./autogen.sh
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--with-netplay \
+		--with-opengl \
+		--with-gtk3 \
+		--without-pulseaudio
+	make
+}
+
+package() {
+	cd "$builddir"/gtk
+	make DESTDIR="${pkgdir}" install
+	mv "${pkgdir}"/usr/bin/snes9x-gtk "${pkgdir}"/usr/bin/snes9x
+}
+
+sha512sums="61d1d6f9c1fc4fbf6253ac7a7d214c771563d7d60238197b2f1525a58f8f9011446f400767d39ec464c69d80574a7dcd78557c8f47605df992af28cb107c0f6e  snes9x-1.55.tar.gz"
-- 
2.16.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Mar 02 2018 - 15:20:17 GMT