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 at crux-arm dot nu
10 source=(http://dl.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar)
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
25 cd /usr/share/graywood/
30 chmod +x $PKG/usr/bin/graywood