Patches for aports can be sent to this list

2 2

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

Taner Tas
Details
Message ID
<20171209214953.5555-1-taner76@gmail.com>
Sender timestamp
1512856193
DKIM signature
missing
Download raw message
Patch: +40 -0
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 <taner76@gmail.com>
+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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Natanael Copa
Details
Message ID
<20171218135410.5747053e@ncopa-desktop.copa.dup.pw>
In-Reply-To
<20171209214953.5555-1-taner76@gmail.com> (view parent)
Sender timestamp
1513601650
DKIM signature
missing
Download raw message
Hi,

Thank you for your contriubtion. Please see question below.

On Sat,  9 Dec 2017 21:49:53 +0000
Taner Tas <taner76@gmail.com> wrote:

> 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 <taner76@gmail.com>
> +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

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.

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

-nc


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Taner Tas
Details
Message ID
<1874079718.574977.1513614443477@mail.yahoo.com>
In-Reply-To
<20171218135410.5747053e@ncopa-desktop.copa.dup.pw> (view parent)
Sender timestamp
1513614443
DKIM signature
missing
Download raw message
 

    On Monday, December 18, 2017, 3:54:16 PM GMT+3, Natanael Copa <ncopa@alpinelinux.org> wrote:  
 
 Hi,

Thank you for your contriubtion. Please see question below.


> +    make -j4

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.

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