aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian <sebastian@sebsite.pw>2021-12-19 16:40:18 -0500
committerdispatch <dispatch@listserv.local>2021-12-20 03:41:58 +0000
commit8261cc8839cbd9c79a4fc69923bb6a37508792fa (patch)
tree6c141a8ba9f69992bd9ac64d8b63fd442ff08f31
parente7627cffcaab20252badd78207ebc40eec1182a0 (diff)
downloadaports-patches/3821.tar.gz
aports-patches/3821.tar.bz2
aports-patches/3821.tar.xz
testing/ace-of-penguins: new aportpatches/3821
Signed-off-by: Sebastian <sebastian@sebsite.pw>
-rw-r--r--testing/ace-of-penguins/APKBUILD39
-rw-r--r--testing/ace-of-penguins/ace.patch76
2 files changed, 115 insertions, 0 deletions
diff --git a/testing/ace-of-penguins/APKBUILD b/testing/ace-of-penguins/APKBUILD
new file mode 100644
index 0000000000..44fe197a3b
--- /dev/null
+++ b/testing/ace-of-penguins/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Sebastian Hudak <sebastian@sebsite.pw>
+# Maintainer: Sebastian Hudak <sebastian@sebsite.pw>
+pkgname=ace-of-penguins
+pkgver=1.4
+pkgrel=0
+pkgdesc="Collection of one-player games for X"
+url="https://www.delorie.com/store/ace/"
+arch="all"
+license="GPL-2.0-or-later"
+depends="libpng libx11 libxpm zlib"
+makedepends="libpng-dev libx11-dev libxpm-dev make zlib-dev"
+subpackages="$pkgname-doc"
+source="https://www.delorie.com/store/ace/ace-$pkgver.tar.gz
+ ace.patch"
+builddir="$srcdir/ace-$pkgver"
+
+prepare() {
+ default_prepare
+}
+
+build() {
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ mkdir -p "$pkgdir"/usr/share/doc/ace-of-penguins/
+ install -Dm644 docs/*.* "$pkgdir"/usr/share/doc/ace-of-penguins/
+}
+
+sha512sums="
+cd382db95dc17d75a76809c7f1e096e14f5863c1166aa5db7f93204ce949a9ed21979212946b9d3a09667f4a93b30f4cc44a220940f9b5dd8996f28ecb4a6dcc ace-1.4.tar.gz
+6846662deda4c21a89ecaf55afe1580f82f67122f236618a94dcd584cd3a5a76d0429c9bd4ac808e29d04ae78ab9cf9417e274585f87af46a0a769af4917f509 ace.patch
+"
diff --git a/testing/ace-of-penguins/ace.patch b/testing/ace-of-penguins/ace.patch
new file mode 100644
index 0000000000..3728795c6c
--- /dev/null
+++ b/testing/ace-of-penguins/ace.patch
@@ -0,0 +1,76 @@
+Some patches have been taken from the ace-of-penguins AUR package.
+https://aur.archlinux.org/cgit/aur.git/tree/ace14_fixes.patch?h=ace-of-penguins
+
+diff -Naur ace-1.4/config.guess ace-1.4-alpine/config.guess
+--- ace-1.4/config.guess 2012-03-24 18:00:49.000000000 +0000
++++ ace-1.4-alpine/config.guess 2021-12-19 21:36:35.650013257 +0000
+@@ -882,6 +882,9 @@
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
+ exit ;;
++ aarch64*:Linux:*:*)
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
++ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+@@ -950,7 +953,7 @@
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+- ppc64:Linux:*:*)
++ ppc64*:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+diff -Naur ace-1.4/lib/Makefile.am ace-1.4-alpine/lib/Makefile.am
+--- ace-1.4/lib/Makefile.am 2012-03-24 18:00:49.000000000 +0000
++++ ace-1.4-alpine/lib/Makefile.am 2021-12-19 21:36:12.876679139 +0000
+@@ -6,7 +6,7 @@
+ CLEANFILES = images.c images.d
+
+ INCLUDES = $(X_CFLAGS) @PDA@
+-AM_LDFLAGS = $(X_LIBS)
++AM_LDFLAGS = $(X_LIBS) -lpng -lz -lm
+
+ BUILD_CC = @BUILD_CC@
+ AR = @AR@
+diff -Naur ace-1.4/lib/make-imglib.c ace-1.4-alpine/lib/make-imglib.c
+--- ace-1.4/lib/make-imglib.c 2012-03-24 18:00:49.000000000 +0000
++++ ace-1.4-alpine/lib/make-imglib.c 2021-12-19 21:36:12.876679139 +0000
+@@ -86,7 +86,7 @@
+ png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
+ info_ptr = png_create_info_struct (png_ptr);
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf (png_ptr))) {
+ fclose (f);
+ continue;
+ }
+diff -Naur ace-1.4/lib/xwin.c ace-1.4-alpine/lib/xwin.c
+--- ace-1.4/lib/xwin.c 2012-03-24 18:00:49.000000000 +0000
++++ ace-1.4-alpine/lib/xwin.c 2021-12-19 21:36:12.876679139 +0000
+@@ -55,7 +55,6 @@
+ { "-visual", OPTION_INTEGER, &visual_id },
+ { 0, 0, 0 }
+ };
+-OptionDesc *xwin_options = xwin_options_list;
+
+ Display *display=0;
+ int screen=0;
+@@ -841,13 +840,13 @@
+ png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
+ info_ptr = png_create_info_struct (png_ptr);
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf (png_ptr))) {
+ fprintf(stderr, "Invalid PNG image!\n");
+ return;
+ }
+
+ file_bytes = src->file_data;
+- png_set_read_fn (png_ptr, (voidp)&file_bytes, (png_rw_ptr)png_reader);
++ png_set_read_fn (png_ptr, &file_bytes, (png_rw_ptr)png_reader);
+
+ png_read_info (png_ptr, info_ptr);
+