diff options
author | David Demelier <markand@malikania.fr> | 2020-01-22 11:13:40 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-22 11:28:53 +0100 |
commit | 3a43d1846deb1b3a28b7248e3f8b41fa9ce765fb (patch) | |
tree | a7f6b49be959a8d2bd1e904d60551c1a7b4ceda6 /testing | |
parent | 95553bdbf59d6505291ee513d4bc04dc741fbe5a (diff) | |
download | aports-3a43d1846deb1b3a28b7248e3f8b41fa9ce765fb.zip |
testing/nsnake: new aport
http://projects.malikania.fr/nsnake
snake game for your terminal
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nsnake/APKBUILD | 30 | ||||
-rw-r--r-- | testing/nsnake/patch-ncurses.patch | 20 |
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/nsnake/APKBUILD b/testing/nsnake/APKBUILD new file mode 100644 index 00000000000..1d2952bd1f7 --- /dev/null +++ b/testing/nsnake/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: David Demelier <markand@malikania.fr> +# Maintainer: David Demelier <markand@malikania.fr> +pkgname="nsnake" +pkgver="2.2.0" +pkgrel=0 +pkgdesc="snake game for your terminal" +url="http://projects.malikania.fr/nsnake" +arch="all" +license="ISC" +makedepends="ncurses-dev" +subpackages="$pkgname-doc" +source=" + http://releases.malikania.fr/nsnake/$pkgver/$pkgname-$pkgver.tar.xz + patch-ncurses.patch" +options="!check suid" # suid is required for saving scores. + +prepare() { + default_prepare +} + +build() { + make PREFIX=/usr VARDIR=/var +} + +package() { + make PREFIX=/usr VARDIR=/var DESTDIR="$pkgdir" install +} + +sha512sums="275fdabfe2a4fead664198c98f7d5425d6c60b2334497405dca0a3c3f77c2d0bb5ba8a8e404b61acb7e238de0cf900e5861fa3442cee89cf9c9591f05b5900bf nsnake-2.2.0.tar.xz +64a3973aa47917d48d67413a388b028431d63f20fe7c44b4e95a85a9d894917728f7efd88c5ddc3d9a84d3d839845a09f10ba1dd21bf17826d850ea1248b1915 patch-ncurses.patch" diff --git a/testing/nsnake/patch-ncurses.patch b/testing/nsnake/patch-ncurses.patch new file mode 100644 index 00000000000..121b091b1b6 --- /dev/null +++ b/testing/nsnake/patch-ncurses.patch @@ -0,0 +1,20 @@ +# HG changeset patch +# User David Demelier <markand@malikania.fr> +# Date 1578666142 -3600 +# Fri Jan 10 15:22:22 2020 +0100 +# Node ID 7fc487a50780cbedcd5ee1ade676571ce0f6d37a +# Parent 84018b5f2edc3b8dc8f9a87550f5163ddd28f49e +make: -lncurses has to be at the end + +diff -r 84018b5f2edc -r 7fc487a50780 Makefile +--- a/Makefile Mon Oct 14 21:03:08 2019 +0200 ++++ b/Makefile Fri Jan 10 15:22:22 2020 +0100 +@@ -38,7 +38,7 @@ + CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ./sysconfig.sh > $@ + + nsnake: ${OBJS} +- ${CC} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} ++ ${CC} -o $@ ${OBJS} ${LDFLAGS} ${LIBS} + + install: nsnake + install -Dm2555 -g ${GID} -o ${UID} nsnake ${DESTDIR}${BINDIR}/nsnake |