This fixes the RNG problems I've been seeing.
name=nethack
version=3.4.3
-release=5
+release=6
source=(http://dl.sourceforge.net/sourceforge/$name/$name-343-src.tgz \
http://www.netsonic.fi/~walker/nh/nh343jl.diff \
$name-gzip.diff)
sed -i -e 's|/usr/games/lib/nethackdir|/usr/share/nethack/|g' config.h
echo "\
-#define LINUX
#define MENU_COLOR_REGEX
#define DLB
" >> config.h
+ sed -i -e 's|^/\* #define LINUX|#define LINUX|' unixconf.h
+
cd $SRC/$name-$version/src
sed -i -e 's|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|g' Makefile
sed -i -e 's|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|g' Makefile