summaryrefslogtreecommitdiff
path: root/community/nethack
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-11 01:21:34 -0700
committerroot <root@rshg054.dnsready.net>2013-08-11 01:21:34 -0700
commit18a41d682d6e91e0d28fce23eb75292f477bd620 (patch)
treebce8f660d7d0b6541cadbc49bf1bac2434e4c0c6 /community/nethack
parent0ade1da67addf154d93c6a6399b0a3d5a18a3336 (diff)
Sun Aug 11 01:21:31 PDT 2013
Diffstat (limited to 'community/nethack')
-rw-r--r--community/nethack/PKGBUILD67
-rw-r--r--community/nethack/nethack.install12
2 files changed, 0 insertions, 79 deletions
diff --git a/community/nethack/PKGBUILD b/community/nethack/PKGBUILD
deleted file mode 100644
index ccb4a8c60..000000000
--- a/community/nethack/PKGBUILD
+++ /dev/null
@@ -1,67 +0,0 @@
-# $Id: PKGBUILD 73189 2012-07-03 18:35:52Z schuay $
-# Maintainer : schuay <jakob.gruber@gmail.com>
-# Contributor : kevin <kevin@archlinux.org>
-# Contributor : Christian Schmidt <mucknert@gmx.net>
-# Contributor : Markus Meissner <markus@meissna.de>
-# Contributor : Nick Erdmann <erdmann@date.upb.de>
-
-pkgname=nethack
-pkgver=3.4.3
-pkgrel=7
-pkgdesc='A single player dungeon exploration game'
-arch=('i686' 'x86_64')
-url="http://www.nethack.org/index.html"
-license=('custom')
-depends=('ncurses' 'gzip')
-install=nethack.install
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-${pkgver//.}-src.tgz")
-md5sums=('21479c95990eefe7650df582426457f9')
-
-build(){
- cd $srcdir/$pkgname-$pkgver/
- sh sys/unix/setup.sh
-
- sed -e '/define HACKDIR/ s|/usr/games/lib/nethackdir|/var/games/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
-
- # we are setting up for setgid games, so modify all necessary permissions
- # to allow full access for groups
-
- sed -e '/^GAMEDIR\s*=/ s|/games/.*$|/var/games/$(GAME)|' \
- -e '/^GAMEUID\s*=/ s|games|root|' \
- -e '/^GAMEGRP\s*=/ s|bin|games|' \
- -e '/^GAMEPERM\s*=/ s|04755|02755|' \
- -e '/^FILEPERM\s*=/ s|0644|0664|' \
- -e '/^DIRPERM\s*=/ s|0755|0775|' \
- -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
-
- make
-}
-
-package() {
- cd $srcdir/$pkgname-$pkgver/
-
- install -dm755 $pkgdir/usr/share/{man/man6,doc/nethack}
- install -dm775 $pkgdir/var/games/
- make PREFIX=$pkgdir install manpages
- sed -e "s|HACKDIR=$pkgdir/|HACKDIR=/|" \
- -e 's|HACK=$HACKDIR|HACK=/usr/lib/nethack|' \
- -i $pkgdir/usr/bin/nethack
-
- install -dm755 $pkgdir/usr/lib/nethack
- mv $pkgdir/var/games/nethack/{nethack,recover} $pkgdir/usr/lib/nethack/
-
- install -Dm644 doc/Guidebook.txt $pkgdir/usr/share/doc/nethack/Guidebook.txt
-
- install -Dm644 dat/license $pkgdir/usr/share/licenses/$pkgname/LICENSE
-}
diff --git a/community/nethack/nethack.install b/community/nethack/nethack.install
deleted file mode 100644
index 66ec2aeb5..000000000
--- a/community/nethack/nethack.install
+++ /dev/null
@@ -1,12 +0,0 @@
-pre_upgrade() {
- if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
- mv /usr/share/nethack /tmp/nethack-backup
- fi
-}
-
-post_upgrade() {
- if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
- rm -rf /var/games/nethack
- mv /tmp/nethack-backup /var/games/nethack
- fi
-}