CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
npush: Initial import (verified compilation).
[attic/ports/games-cross.git] / omega / Pkgfile
CommitLineData
42a8cde9
VM
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, crux-arm at mikeux dot dyndns dot org
5# Depends on: ncurses
6
7name=omega
8version=0.90.1
9release=1
10source=(http://www.alcyone.com/binaries/$name/$name-$version-src.tar.gz)
11
12build() {
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
27cd /usr/share/omega
28./omega \$@
29
30# End of file
31EOF
32 chmod +x $PKG/usr/bin/omega
33}