Subject: [alpine-aports] [PATCH] testing/advancemame: upgrade to 3.6, separate data package

From: Taner Tas <[email-masked]>
Date: Tue, 12 Dec 2017 19:10:26 +0000

---
 testing/advancemame/APKBUILD | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/testing/advancemame/APKBUILD b/testing/advancemame/APKBUILD
index cf2c8b9b1..e74ca706d 100644
--- a/testing/advancemame/APKBUILD
+++ b/testing/advancemame/APKBUILD
@@ -1,13 +1,13 @@
 # Maintainer: Taner Tas <[email-masked]>
 pkgname=advancemame
-pkgver=3.5
+pkgver=3.6
 pkgrel=0
 pkgdesc="A port of the MAME and MESS emulators 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"
+subpackages="$pkgname-doc $pkgname-data"
 source="https://github.com/amadvance/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
 options="!check"
 
@@ -19,7 +19,6 @@ build() {
 	cd "$builddir"
 	./configure \
 		--build=$CBUILD \
-		--host=$CHOST \
 		--prefix=/usr \
 		--sysconfdir=/etc \
 		--mandir=/usr/share/man \
@@ -37,4 +36,11 @@ package() {
 	install
 }
 
-sha512sums="5deeadbbdc4fd61c8fbfdcf22e3c846523c77afaf3d2ff7759d3c0d723fec8549020c67883505eea3b19ada3f1f20ef455013c0ef696c669b4e3c4b1f48178b9  advancemame-3.5.tar.gz"
+data() {
+	pkgdesc="Distrubition files for advancemame"
+	depends="$pkgname"
+	mkdir -p "$subpkgdir"/usr/share/advance
+	mv "$pkgdir"/usr/share/advance/* "$subpkgdir"/usr/share/advance/
+}
+
+sha512sums="4693d993c7cd6333fc1a484c83d280227005b5e2aa79c70f8d12373615bab161f41703686cf6c0088ed4f2224801bf88d1ea9bb7d6bf93c37c58e16cfa896687  advancemame-3.6.tar.gz"
-- 
2.15.0

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