1 # Description: The classic Roguelike game
2 # URL: http://www.alcyone.com/max/projects/omega/
3 # Maintainer: Victor Martinez, pitillo at ono dot com
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://www.alcyone.com/binaries/$name/$name-$version-src.tar.gz)
15 sed -i -e '34 d' -e '1731 d' -e '1732 d' -e '1733 d' scr.c
16 sed -i 's|/usr/local/games/omegalib/|/usr/share/omega/lib/|g' defs.h
17 make CC="$CC" CFLAGS="$CFLAGS -DBSD"
19 mkdir -p $PKG/usr/{bin,share/omega/lib/}
20 install -D -m0711 omega $PKG/usr/share/omega/omega
21 mv lib/{license.txt,help*.txt,motd.txt,abyss.txt,scroll[1234].txt,*.dat,omega.hi,omega.log} $PKG/usr/share/omega/lib/
22 chmod 0666 $PKG/usr/share/omega/lib/{omega.hi,omega.log}
24 cat > $PKG/usr/bin/omega <<EOF
32 chmod +x $PKG/usr/bin/omega