--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/nethack
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/nethack/
+-rw-r--r-- root/root usr/share/nethack/Arc-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Arc-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Arc-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Arc-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Arc-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Bar-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Bar-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Bar-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Bar-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Bar-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Cav-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Cav-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Cav-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Cav-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Cav-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Hea-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Hea-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Hea-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Hea-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Hea-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Kni-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Kni-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Kni-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Kni-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Kni-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Mon-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Mon-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Mon-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Mon-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Mon-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Pri-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Pri-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Pri-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Pri-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Pri-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Ran-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Ran-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Ran-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Ran-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Ran-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Rog-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Rog-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Rog-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Rog-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Rog-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Sam-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Sam-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Sam-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Sam-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Sam-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Tou-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Tou-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Tou-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Tou-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Tou-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Val-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Val-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Val-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Val-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Val-strt.lev
+-rw-r--r-- root/root usr/share/nethack/Wiz-fila.lev
+-rw-r--r-- root/root usr/share/nethack/Wiz-filb.lev
+-rw-r--r-- root/root usr/share/nethack/Wiz-goal.lev
+-rw-r--r-- root/root usr/share/nethack/Wiz-loca.lev
+-rw-r--r-- root/root usr/share/nethack/Wiz-strt.lev
+-rw-r--r-- root/root usr/share/nethack/air.lev
+-rw-r--r-- root/root usr/share/nethack/asmodeus.lev
+-rw-r--r-- root/root usr/share/nethack/astral.lev
+-rw-r--r-- root/root usr/share/nethack/baalz.lev
+-rw-r--r-- root/root usr/share/nethack/bigrm-1.lev
+-rw-r--r-- root/root usr/share/nethack/bigrm-2.lev
+-rw-r--r-- root/root usr/share/nethack/bigrm-3.lev
+-rw-r--r-- root/root usr/share/nethack/bigrm-4.lev
+-rw-r--r-- root/root usr/share/nethack/bigrm-5.lev
+-rw-r--r-- root/root usr/share/nethack/castle.lev
+-rw-r--r-- root/root usr/share/nethack/cmdhelp
+-rw-r--r-- root/root usr/share/nethack/data
+-rw-r--r-- root/root usr/share/nethack/dungeon
+-rw-r--r-- root/root usr/share/nethack/earth.lev
+-rw-r--r-- root/root usr/share/nethack/fakewiz1.lev
+-rw-r--r-- root/root usr/share/nethack/fakewiz2.lev
+-rw-r--r-- root/root usr/share/nethack/fire.lev
+-rw-r--r-- root/root usr/share/nethack/help
+-rw-r--r-- root/root usr/share/nethack/hh
+-rw-r--r-- root/root usr/share/nethack/history
+-rw-r--r-- root/root usr/share/nethack/juiblex.lev
+-rw-r--r-- root/root usr/share/nethack/knox.lev
+-rw-r--r-- root/root usr/share/nethack/license
+-rw-r--r-- root/root usr/share/nethack/logfile (EMPTY)
+-rw-r--r-- root/root usr/share/nethack/medusa-1.lev
+-rw-r--r-- root/root usr/share/nethack/medusa-2.lev
+-rw-r--r-- root/root usr/share/nethack/minefill.lev
+-rw-r--r-- root/root usr/share/nethack/minend-1.lev
+-rw-r--r-- root/root usr/share/nethack/minend-2.lev
+-rw-r--r-- root/root usr/share/nethack/minend-3.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-1.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-2.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-3.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-4.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-5.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-6.lev
+-rw-r--r-- root/root usr/share/nethack/minetn-7.lev
+-rwsr-xr-x root/root usr/share/nethack/nethack
+-rw-r--r-- root/root usr/share/nethack/opthelp
+-rw-r--r-- root/root usr/share/nethack/options
+-rw-r--r-- root/root usr/share/nethack/oracle.lev
+-rw-r--r-- root/root usr/share/nethack/oracles
+-rw-r--r-- root/root usr/share/nethack/orcus.lev
+-rw-r--r-- root/root usr/share/nethack/perm (EMPTY)
+-rw-r--r-- root/root usr/share/nethack/quest.dat
+-rw-r--r-- root/root usr/share/nethack/record (EMPTY)
+-rwxr-xr-x root/root usr/share/nethack/recover
+-rw-r--r-- root/root usr/share/nethack/rumors
+-rw-r--r-- root/root usr/share/nethack/sanctum.lev
+drwxr-xr-x root/root usr/share/nethack/save/
+-rw-r--r-- root/root usr/share/nethack/soko1-1.lev
+-rw-r--r-- root/root usr/share/nethack/soko1-2.lev
+-rw-r--r-- root/root usr/share/nethack/soko2-1.lev
+-rw-r--r-- root/root usr/share/nethack/soko2-2.lev
+-rw-r--r-- root/root usr/share/nethack/soko3-1.lev
+-rw-r--r-- root/root usr/share/nethack/soko3-2.lev
+-rw-r--r-- root/root usr/share/nethack/soko4-1.lev
+-rw-r--r-- root/root usr/share/nethack/soko4-2.lev
+-rw-r--r-- root/root usr/share/nethack/tower1.lev
+-rw-r--r-- root/root usr/share/nethack/tower2.lev
+-rw-r--r-- root/root usr/share/nethack/tower3.lev
+-rw-r--r-- root/root usr/share/nethack/valley.lev
+-rw-r--r-- root/root usr/share/nethack/water.lev
+-rw-r--r-- root/root usr/share/nethack/wizard1.lev
+-rw-r--r-- root/root usr/share/nethack/wizard2.lev
+-rw-r--r-- root/root usr/share/nethack/wizard3.lev
+-rw-r--r-- root/root usr/share/nethack/wizhelp
--- /dev/null
+# Description:
+# URL: http://sourceforge.net/projects/nethack
+# Maintainer: Victor Martinez, pitillo at ono dot com
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: ncurses
+
+name=nethack
+version=3.4.3
+release=1
+source=(http://dl.sourceforge.net/project/$name/$name/$version/$name-343-src.tgz \
+ $name-$version-tparm.patch)
+
+build() {
+ cd $name-$version
+ sh sys/unix/setup.sh
+ sed "s|/* #define LINUX */|#define LINUX|g" -i include/unixconf.h
+ sed "s|WINTTYLIB = -ltermlib|WINTTYLIB = -lncurses|g" -i src/Makefile
+
+ SAVED_CC="$CC" SAVED_CFLAGS="$CFLAGS"
+ SAVED_CFLAGS="$CFLAGS" SAVED_CXXFLAGS="$CXXFLAGS"
+ SAVED_AR="$AR" SAVED_RANLIB="$RANLIB"
+ unset CC CFLAGS CXX CXXFLAGS AR RANLIB
+
+ pushd util
+ make dgn_comp
+ make lev_comp
+ mv dgn_comp dgn_comp_host
+ mv lev_comp lev_comp_host
+ popd
+
+ pushd util
+ rm makedefs.o makedefs ../src/{monst.o,objects.o,alloc.o,decl.o,drawing.o}
+ rm dgn_lex.o panic.o dgn_main.o
+ make CC="$SAVED_CC" makedefs
+ mv makedefs makedefs_arm
+ mv makedefs.o makedefs.o_arm
+ mv ../src/monst.o ../src/monst.o_arm
+ mv ../src/objects.o ../src/objects.o_arm
+ popd
+
+ pushd util
+ make makedefs
+ popd
+
+ patch -p1 -i $SRC/$name-$version-tparm.patch
+
+ export CC="$SAVED_CC" CXX="SAVED_CXX" LD="$SAVED_LD"
+ export AR="$SAVED_AR" RANLIB="$SAVED_RANLIB"
+
+ mv util/makedefs.o_arm util/makedefs.o
+ mv src/monst.o_arm src/monst.o
+ mv src/objects.o_arm src/objects.o
+ sed -e "s|../util/dgn_comp|../util/dgn_comp_host|g" \
+ -e "s|../util/lev_comp|../util/lev_comp_host|g" -i dat/Makefile
+
+ make
+
+ sed -e 's|PREFIX[\t]* = /usr|PREFIX = $(PKG)/usr|g' \
+ -e 's|GAMEDIR = $(PREFIX)/games/lib/$(GAME)dir|GAMEDIR = $(PREFIX)/lib/$(GAME)dir|g' \
+ -e 's|GAMEGRP = bin|GAMEGRP = root|' \
+ -e 's|GAMEUID = games|GAMEUID = root|g' \
+ -e 's|SHELLDIR = $(PREFIX)/games|SHELLDIR = $(PREFIX)/bin|g' -i Makefile
+
+ make install
+
+ mkdir -p $PKG/usr/share/
+ mv $PKG/usr/lib/nethackdir/ $PKG/usr/share/$name/
+ rmdir $PKG/usr/lib
+ sed -i -e "s|HACKDIR=$PKG/usr/lib/nethackdir|HACKDIR=/usr/share/nethack|g" $PKG/usr/bin/nethack
+}