diff options
Diffstat (limited to 'testing/nethack/APKBUILD')
-rw-r--r-- | testing/nethack/APKBUILD | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/testing/nethack/APKBUILD b/testing/nethack/APKBUILD deleted file mode 100644 index a7d4f467c9..0000000000 --- a/testing/nethack/APKBUILD +++ /dev/null @@ -1,72 +0,0 @@ -# Contributor: Jesse Young <jlyo@jlyo.org> -# Maintainer: -pkgname=nethack -pkgver=3.4.3 -pkgrel=0 -pkgdesc='A single player dungeon exploration game' -arch='all' -url='http://www.nethack.org/index.html' -license='custom' -depends='ncurses gzip' -makedepends='ncurses-dev byacc flex linux-headers' -subpackages="$pkgname-doc" -install="" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-${pkgver//.}-src.tgz - nethack.bin" - -build(){ - cd $srcdir/$pkgname-$pkgver/ - sh sys/unix/setup.sh - - sed -e '/define HACKDIR/ s|/usr/games/lib/nethackdir|/usr/lib/nethack/|' \ - -e "/^#define COMPRESS\s/ s|/usr/bin/compress|$(which gzip)|" \ - -e '/^#define COMPRESS_EXTENSION/ s|".Z"|".gz"|' \ - -e 's|^/\* \(#define DLB\) \*/|\1|' -i include/config.h - - sed -e 's|^/\* \(#define LINUX\) \*/|\1|' \ - -e 's|^/\* \(#define TIMED_DELAY\) \*/|\1|' -i include/unixconf.h - - sed -e 's|^# \(WINTTYLIB = -lncurses\)|\1|' \ - -e 's|^WINTTYLIB = -ltermlib|#&|' -i src/Makefile - - sed -e '/^GAMEDIR\s*=/ s|/games/.*$|/usr/lib/$(GAME)|' \ - -e '/^GAMEPERM\s*=/ s|04755|0755|' \ - -e '/^GAMEUID\s*=/ s|games|root|' \ - -e '/^GAMEGRP\s*=/ s|bin|root|' \ - -e '/^CHOWN\s*=/ s|chown|true|' \ - -e '/^CHGRP\s*=/ s|chgrp|true|' \ - -e '/^SHELLDIR\s*=/ s|/games|/usr/bin|' -i Makefile - - sed -e "/^MANDIR\s*=/s|/usr/man/man6|$pkgdir/usr/share/man/man6|" -i doc/Makefile - - sed -e "s/^LEX\s*=.*$/LEX=flex/" -i util/Makefile - - make -} - -package() { - cd $srcdir/$pkgname-$pkgver/ - - install -dm755 $pkgdir/usr/share/man/man6 - install -dm755 $pkgdir/usr/share/doc/nethack - install -dm755 $pkgdir/usr/share/nethack - make PREFIX=$pkgdir install manpages - rm -f $pkgdir/usr/bin/nethack - rm -f $pkgdir/usr/lib/nethack/license - rm -f $pkgdir/usr/lib/nethack/logfile - rm -f $pkgdir/usr/lib/nethack/perm - rm -f $pkgdir/usr/lib/nethack/record - rm -rf $pkgdir/usr/lib/nethack/save - mv $pkgdir/usr/lib/nethack/nhdat $pkgdir/usr/share/nethack/nhdat - - install -m755 $srcdir/nethack.bin $pkgdir/usr/bin/nethack - - install -Dm644 doc/Guidebook.txt $pkgdir/usr/share/doc/nethack/Guidebook.txt - install -Dm644 dat/license $pkgdir/usr/share/licenses/$pkgname/LICENSE -} -md5sums="21479c95990eefe7650df582426457f9 nethack-343-src.tgz -2498972119efd501fbe9d3a0cacfa107 nethack.bin" -sha256sums="bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4 nethack-343-src.tgz -e9efd10d5a57bfcfefda6720308fdff9c14a2e71b0b4c68f2267dc59e7b7e3cf nethack.bin" -sha512sums="052342c19619219f291571d48cf7799f962eb6ec6f8a276427225c0abbd833eada18abeff9fbd647919f2a9e3bb097d7f154675e283fe48abc4752f24c192d8f nethack-343-src.tgz -0846b0a22451e420366c790b128e8c6b9ba902595e963f51bbbb61c7b7bebdeee2a13e51fc7f786e2da95834372ec6a5792d7a0308250c98b6bd48026d881eb0 nethack.bin" |