CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
seabattle: moved from opt collection.
[attic/ports/games-cross.git] / omega / Pkgfile
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
5 # Depends on: ncurses
6
7 name=omega
8 version=0.90.1
9 release=1
10 source=(http://www.alcyone.com/binaries/$name/$name-$version-src.tar.gz)
11
12 build() {
13 cd $name
14
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"
18
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}
23
24 cat > $PKG/usr/bin/omega <<EOF
25 #!/bin/bash
26
27 cd /usr/share/omega
28 ./omega \$@
29
30 # End of file
31 EOF
32 chmod +x $PKG/usr/bin/omega
33 }