Subject: [alpine-aports] [PATCH] testing/advancemame: Update to 3.7, advmess and advmenu binaries are separated into different packages.

From: Taner Tas <[email-masked]>
Date: Tue, 13 Feb 2018 04:36:58 +0000

---
 testing/advancemame/APKBUILD | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/testing/advancemame/APKBUILD b/testing/advancemame/APKBUILD
index 380f1dc4c..4abf6303d 100644
--- a/testing/advancemame/APKBUILD
+++ b/testing/advancemame/APKBUILD
@@ -1,13 +1,13 @@
 # Maintainer: Taner Tas <[email-masked]>
 pkgname=advancemame
-pkgver=3.6
+pkgver=3.7
 pkgrel=0
-pkgdesc="A port of the MAME and MESS emulators for Arcade Monitors and TVs but also for LCDs and PC monitors"
+pkgdesc="A port of the MAME emulator for Arcade Monitors and TVs but also for LCDs and PC monitors"
 url="http://www.advancemame.it"
 arch="all"
 license="GPL"
-makedepends="sdl2-dev alsa-lib-dev freetype-dev zlib-dev expat-dev slang-dev"
-subpackages="$pkgname-doc $pkgname-data"
+makedepends="clang-dev sdl2-dev alsa-lib-dev freetype-dev zlib-dev expat-dev slang-dev"
+subpackages="$pkgname-doc $pkgname-data::noarch $pkgname-mess $pkgname-menu"
 source="https://github.com/amadvance/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
 options="!check"
 
@@ -17,12 +17,18 @@ prepare() {
 
 build() {
 	cd "$builddir"
+
+export CC=clang
+export CXX=clang++
+export LD="g++ -fuse-ld=gold"
+
 	./configure \
 		--build=$CBUILD \
 		--prefix=/usr \
 		--sysconfdir=/etc \
 		--mandir=/usr/share/man \
 		--localstatedir=/var \
+		--enable-fb \
 		--enable-sdl2
 	make
 }
@@ -43,4 +49,17 @@ data() {
 	mv "$pkgdir"/usr/share/advance/* "$subpkgdir"/usr/share/advance/
 }
 
-sha512sums="4693d993c7cd6333fc1a484c83d280227005b5e2aa79c70f8d12373615bab161f41703686cf6c0088ed4f2224801bf88d1ea9bb7d6bf93c37c58e16cfa896687  advancemame-3.6.tar.gz"
+mess() {
+	pkgdesc="Advancemame port of MESS."
+	mkdir -p "$subpkgdir"/usr/bin
+	mv "$pkgdir"/usr/bin/advmess "$subpkgdir"/usr/bin/
+
+}
+
+menu() {
+	pkgdesc="An emulator frontend with sound and animated previews of your games."
+	mkdir -p "$subpkgdir"/usr/bin
+	mv "$pkgdir"/usr/bin/advmenu "$subpkgdir"/usr/bin/
+
+}
+sha512sums="b5af59cdd3cf70dfae0769ed35eb6ce00a6f01d05eefcb687f322420faa2ee5aabf83394249c2ab7f7f1241d3fd09c2f0412666b2dbd27b91e7bc3622f925f74  advancemame-3.7.tar.gz"
-- 
2.16.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---