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

From: Taner Tas <[email-masked]>
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
@@ -0,0 +1,52 @@
+# Contributor: Taner Tas <[email-masked]>
+# Maintainer: Taner Tas <[email-masked]>
+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:  [email-masked]
Help:         [email-masked]
---

---

From: Leonardo Arena <[email-masked]>
Date: Fri, 9 Mar 2018 14:50:11 +0100

Hi,

On Fri, Mar 2, 2018 at 4:20 PM, Taner Tas <[email-masked]> wrote:

> +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

This should go to prepare(). Also I believe it requires autoconf and
automake, which I don't see in makedepends.

Thanks!

/eo

---

From: Taner Tas <[email-masked]>
Date: Sat, 10 Mar 2018 02:44:13 +0300

Hi,
Revised. Patch is attached.

Thanks.
Taner

On Fri, 9 Mar 2018 14:50:11 +0100

-- 
Taner Tas <[email-masked]>

---

From: Taner Tas <[email-masked]>
Date: Thu, 29 Mar 2018 11:20:02 +0300

Hi,

Just a reminder: Requested fixes already sent with previous email.

Thanks.

---

---

From: Taner Tas <[email-masked]>
Date: Mon, 23 Apr 2018 19:29:37 +0300

Hi,

I prepared a new v2 patch and submitted as github PR.
Pleae refer to: https://github.com/alpinelinux/aports/pull/4097

Thanks.

-- 
Taner

---