Subject: [alpine-aports] [PATCH 1/2] testing/fs-uae: new aport

From: Taner Tas <[email-masked]>
Date: Sat, 3 Mar 2018 18:02:57 +0000

https://fs-uae.net/
Amiga emulator.
---
 testing/fs-uae/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 testing/fs-uae/APKBUILD

diff --git a/testing/fs-uae/APKBUILD b/testing/fs-uae/APKBUILD
new file mode 100644
index 0000000..b2c996b
--- /dev/null
+++ b/testing/fs-uae/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Taner Tas <[email-masked]>
+# Maintainer: Taner Tas <[email-masked]>
+pkgname=fs-uae
+pkgver=2.8.3
+pkgrel=0
+pkgdesc="Amiga emulator."
+url="https://fs-uae.net/"
+arch="all"
+license="GPL-2.0-only"
+makedepends="zip clang-dev sdl2-dev openal-soft-dev mesa-dev glew-dev freetype-dev libmpeg2-dev"
+subpackages="$pkgname-lang"
+source="https://fs-uae.net/stable/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+options="!check"
+
+prepare() {
+	default_prepare
+}
+
+build() {
+	export CC=clang
+	export CXX=clang++
+	unset CFLAGS CXXFLAGS
+	cd "$builddir"
+	./configure \
+		--build=$CBUILD \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var \
+		--enable-sdl2
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+	rm -rf "$pkgdir"/usr/share/doc
+}
+sha512sums="1ccab4329a6b678a97f336b963bfaf9ea26bccccba31c90f1b7a8c2a6d3a9f343f9095733be744d4357495c808216d32c08a2bd8ce05bba73017147616d5e8cf  fs-uae-2.8.3.tar.gz"
-- 
2.16.2

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

---

From: Taner Tas <[email-masked]>
Date: Sat, 3 Mar 2018 18:02:58 +0000

https://fs-uae.net/launcher
FS-UAE emulator launcher.
---
 testing/fs-uae-launcher/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/fs-uae-launcher/APKBUILD

diff --git a/testing/fs-uae-launcher/APKBUILD b/testing/fs-uae-launcher/APKBUILD
new file mode 100644
index 0000000..828c76c
--- /dev/null
+++ b/testing/fs-uae-launcher/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Taner Tas <[email-masked]>
+pkgname=fs-uae-launcher
+pkgver=2.8.3
+pkgrel=0
+pkgdesc="FS-UAE emulator launcher."
+url="https://fs-uae.net/launcher"
+arch="noarch"
+license="GPL-2.0-only"
+depends="fs-uae~$pkgver py3-qt5"
+makedepends="py3-setuptools gettext"
+subpackages="$pkgname-lang"
+source="https://fs-uae.net/stable/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+options="!check"
+
+prepare() {
+	default_prepare
+}
+
+build() {
+	return 0
+}
+
+package() {
+	cd "$builddir"
+	python3 setup.py install --root="${pkgdir}" \
+        --install-lib=/usr/share/fs-uae-launcher \
+        --install-scripts=/usr/share/fs-uae-launcher
+        make DESTDIR="${pkgdir}" prefix=/usr install-data
+	mkdir -p "${pkgdir}"/usr/bin
+	ln -s /usr/share/fs-uae-launcher/fs-uae-launcher "${pkgdir}"/usr/bin/fs-uae-launcher
+	rm -rf "${pkgdir}"/usr/share/doc
+}
+sha512sums="4eaa5979fe2e8f2c792d4878e9a9ad0a0433206aac42aa380d97aee21e4ba29a54caced2437b83357c2c4d2fab121bfb821fdb8a883ead971766866b02067a2d  fs-uae-launcher-2.8.3.tar.gz"
-- 
2.16.2

---

---

From: Leonardo Arena <[email-masked]>
Date: Tue, 6 Mar 2018 09:56:25 +0100

Hi,

>  create mode 100644 testing/fs-uae/APKBUILD
checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.32 gthread-2.0) were
not met:

Package 'glib-2.0', required by 'virtual:world', not found
Package 'gthread-2.0', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
>>> ERROR: fs-uae: all failed

> +++ b/testing/fs-uae/APKBUILD

prepare() can be omitted if nothing custom is run. "default_prepare" runs
by... default.

Thanks!

/eo

---

From: Taner Tas <[email-masked]>
Date: Tue, 6 Mar 2018 16:23:24 +0000 (UTC)

Hi,

Missing dependency... Please apply the patch attached.

Thanks.
Taner

On Tuesday, March 6, 2018, 11:56:26 AM GMT+3, Leonardo Arena <[email-masked]> wrote: 

Hi,

On Sat, Mar 3, 2018 at 7:02 PM, Taner Tas <[email-masked]> wrote:
> https://fs-uae.net/
> Amiga emulator.
> ---
>  testing/fs-uae/APKBUILD | 39 ++++++++++++++++++++++++++++++ +++++++++

checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.32 gthread-2.0) were not met:

 
> +source="https://fs-uae.net/ stable/${pkgver}/${pkgname}-${ pkgver}.tar.gz"
> +options="!check"
> +
> +prepare() {
> +       default_prepare
> 
> +}
> +

prepare() can be omitted if nothing custom is run. "default_prepare" runs by... default.

Thanks!

/eo

diff --git a/testing/fs-uae/APKBUILD b/testing/fs-uae/APKBUILD
index b2c996b..636bf1e 100644
--- a/testing/fs-uae/APKBUILD
+++ b/testing/fs-uae/APKBUILD
@@ -7,15 +7,11 @@ pkgdesc="Amiga emulator."
 url="https://fs-uae.net/"
 arch="all"
 license="GPL-2.0-only"
-makedepends="zip clang-dev sdl2-dev openal-soft-dev mesa-dev glew-dev freetype-dev libmpeg2-dev"
+makedepends="zip clang-dev sdl2-dev libpng-dev libx11-dev libxi-dev openal-soft-dev linux-headers libmpeg2-dev glib-dev"
 subpackages="$pkgname-lang"
 source="https://fs-uae.net/stable/${pkgver}/${pkgname}-${pkgver}.tar.gz"
 options="!check"
 
-prepare() {
-	default_prepare
-}
-
 build() {
 	export CC=clang
 	export CXX=clang++