CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Major update for Arch-Maintainer's email (all ports)
[attic/ports/games-cross.git] / graywood / Pkgfile
1 # Description: A Clone of Darkwood, an old mac game
2 # URL: http://sourceforge.net/projects/graywood
3 # Maintainer: Victor Martinez, pitillo at ono dot com
4 # Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
5 # Depends on: ncurses
6
7 name=graywood
8 version=v0.0.2
9 release=2
10 source=(http://dl.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar)
11
12 build() {
13 cd $SRC
14 tar xvf $name-$version.tar
15 cd $version/source/graywood
16 mv ../clearscreenfiles/nix/clearscreen_fcn.h .
17 sed -e 's|pause|read|g' -i *
18 $CXX main.cpp -o graywood
19 mkdir -p $PKG/usr/{share/graywood,bin}
20 install -D -m 0755 graywood $PKG/usr/share/graywood/graywood
21 mv *.txt $PKG/usr/share/graywood/
22 cat > $PKG/usr/bin/graywood <<EOF
23 #!/bin/bash
24
25 cd /usr/share/graywood/
26 ./graywood \$@
27
28 # End of file
29 EOF
30 chmod +x $PKG/usr/bin/graywood
31 }