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

From: Taner Tas <[email-masked]>
Date: Sat, 9 Dec 2017 21:49:53 +0000

http://www.advancemame.it
A port of the MAME and MESS emulators for Arcade Monitors and TVs but also for LCDs and PC monitors
---
 testing/advancemame/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 testing/advancemame/APKBUILD

diff --git a/testing/advancemame/APKBUILD b/testing/advancemame/APKBUILD
new file mode 100644
index 000000000..cf2c8b9b1
--- /dev/null
+++ b/testing/advancemame/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Taner Tas <[email-masked]>
+pkgname=advancemame
+pkgver=3.5
+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"
+source="https://github.com/amadvance/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
+options="!check"
+
+prepare() {
+	default_prepare
+}
+
+build() {
+	cd "$builddir"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var \
+		--enable-sdl2
+	make -j4
+}
+
+package() {
+	cd "$builddir"
+	make bindir="${pkgdir}/usr/bin/" \
+	datadir="${pkgdir}/usr/share/" \
+	mandir="${pkgdir}/usr/share/man/" \
+	pkgdocdir="${pkgdir}/usr/share/doc/${pkgname}/" \
+	install
+}
+
+sha512sums="5deeadbbdc4fd61c8fbfdcf22e3c846523c77afaf3d2ff7759d3c0d723fec8549020c67883505eea3b19ada3f1f20ef455013c0ef696c669b4e3c4b1f48178b9  advancemame-3.5.tar.gz"
-- 
2.15.0

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

---

From: Natanael Copa <[email-masked]>
Date: Mon, 18 Dec 2017 13:54:10 +0100

Hi,

Thank you for your contriubtion. Please see question below.

On Sat,  9 Dec 2017 21:49:53 +0000

> +++ b/testing/advancemame/APKBUILD

Why can this build only use 4 cores for building? Our arm server has 48
cores and our ppc64le may have up to 160 threads.

> +sha512sums="5deeadbbdc4fd61c8fbfdcf22e3c846523c77afaf3d2ff7759d3c0d723fec8549020c67883505eea3b19ada3f1f20ef455013c0ef696c669b4e3c4b1f48178b9  advancemame-3.5.tar.gz"

-nc

---

---

From: Taner Tas <[email-masked]>
Date: Mon, 18 Dec 2017 16:27:23 +0000 (UTC)

On Monday, December 18, 2017, 3:54:16 PM GMT+3, Natanael Copa <[email-masked]> wrote:  
 
 Hi,

Hi,Since the package is some hefty comparing to my other contributions, I could only rise up to 4 threads during my tests due to the my Phenom X4 cpu. You can adjust any reasonable value or you can just discard it in order to respect your buildfarm's abuild.conf. Btw, there is no compelling reason for it. The package version is 3.6 now and build parameters adjusted to avoid stack protection error with this version. Should I send the patch from scratch or need to send the update patch after acceptance accordingly?
Regards.Taner