New package: nethack-3.4.3
Finally!
This commit is contained in:
parent
b82a4d01cd
commit
b1bd0bc054
2 changed files with 63 additions and 0 deletions
8
srcpkgs/nethack/INSTALL
Normal file
8
srcpkgs/nethack/INSTALL
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
case "${ACTION}" in
|
||||||
|
post)
|
||||||
|
chown nethack:nethack usr/lib/nethack/nethack
|
||||||
|
chmod 04755 usr/lib/nethack/nethack
|
||||||
|
touch var/games/nethack/logfile var/games/nethack/perm var/games/nethack/record
|
||||||
|
chown nethack:nethack var/games/nethack var/games/nethack/*
|
||||||
|
;;
|
||||||
|
esac
|
55
srcpkgs/nethack/template
Normal file
55
srcpkgs/nethack/template
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
# Template file for 'nethack'
|
||||||
|
pkgname=nethack
|
||||||
|
version=3.4.3
|
||||||
|
revision=1
|
||||||
|
make_dirs="/var/games/nethack/save 0755 nethack root"
|
||||||
|
system_accounts="$pkgname"
|
||||||
|
nethack_homedir="/var/empty"
|
||||||
|
hostmakedepends="ncurses-devel flex groff"
|
||||||
|
depends="gzip"
|
||||||
|
short_desc="Exploring The Mazes of Menace"
|
||||||
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||||
|
license="NetHack General Public License"
|
||||||
|
homepage="http://www.nethack.org/"
|
||||||
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version//.}-src.tgz"
|
||||||
|
checksum=bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4
|
||||||
|
nocross=yes
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
sed -i -e '/COMPRESS/s/compress/gzip/g' \
|
||||||
|
-e '/COMPRESS_EXTENSION/s/\.Z/.gz/g' include/config.h
|
||||||
|
}
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
sh sys/unix/setup.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make all dungeon \
|
||||||
|
CC="$CC" LD="$LD" LEX=flex WINTTYLIB=-lncurses \
|
||||||
|
CFLAGS="-DLINUX -DTIMED_DELAY -DDLB \
|
||||||
|
-DHACKDIR='\"/var/games/nethack\"' -I../include"
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vmkdir usr/share/man/man6
|
||||||
|
vmkdir var/games
|
||||||
|
make install manpages \
|
||||||
|
PREFIX=$DESTDIR \
|
||||||
|
SHELLDIR=$DESTDIR/usr/bin \
|
||||||
|
MANDIR=$DESTDIR/usr/share/man/man6 \
|
||||||
|
GAMEDIR=$DESTDIR/usr/lib/nethack \
|
||||||
|
VARDIR=$DESTDIR/var/games/nethack \
|
||||||
|
GAMEPERM=0755 \
|
||||||
|
CHOWN=: CHGRP=: FLEX=lex
|
||||||
|
|
||||||
|
mv $DESTDIR/usr/lib/nethack/nhdat $DESTDIR/var/games/nethack
|
||||||
|
rm $DESTDIR/var/games/nethack/{logfile,perm,record}
|
||||||
|
|
||||||
|
sed -i -e 's,^HACKDIR=.*,HACKDIR=/var/games/nethack,' \
|
||||||
|
-e 's,^HACK=.*,HACK=/usr/lib/nethack/nethack,' \
|
||||||
|
$DESTDIR/usr/bin/nethack
|
||||||
|
|
||||||
|
vdoc doc/Guidebook.txt
|
||||||
|
vlicense dat/license LICENSE
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue