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
CommitLineData
3eb6cd8a
VM
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
edfe9f6c 4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
3eb6cd8a
VM
5# Depends on: ncurses
6
7name=graywood
8version=v0.0.2
34243e07 9release=2
3eb6cd8a
VM
10source=(http://dl.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar)
11
12build() {
13 cd $SRC
14 tar xvf $name-$version.tar
15 cd $version/source/graywood
34243e07
VM
16 mv ../clearscreenfiles/nix/clearscreen_fcn.h .
17 sed -e 's|pause|read|g' -i *
3eb6cd8a 18 $CXX main.cpp -o graywood
34243e07
VM
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
25cd /usr/share/graywood/
26./graywood \$@
27
28# End of file
29EOF
30 chmod +x $PKG/usr/bin/graywood
3eb6cd8a 31}