drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/graywood
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/graywood/
+-rw-r--r-- root/root usr/share/graywood/armor.txt
+-rw-r--r-- root/root usr/share/graywood/armor_info.txt
+-rwxr-xr-x root/root usr/share/graywood/graywood
+-rw-r--r-- root/root usr/share/graywood/monsters.txt
+-rw-r--r-- root/root usr/share/graywood/monsters_info.txt
+-rw-r--r-- root/root usr/share/graywood/weapons.txt
+-rw-r--r-- root/root usr/share/graywood/weapons_info.txt
name=graywood
version=v0.0.2
-release=1
+release=2
source=(http://dl.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar)
build() {
cd $SRC
tar xvf $name-$version.tar
cd $version/source/graywood
+ mv ../clearscreenfiles/nix/clearscreen_fcn.h .
+ sed -e 's|pause|read|g' -i *
$CXX main.cpp -o graywood
- install -D -m 0755 graywood $PKG/usr/bin/graywood
+ mkdir -p $PKG/usr/{share/graywood,bin}
+ install -D -m 0755 graywood $PKG/usr/share/graywood/graywood
+ mv *.txt $PKG/usr/share/graywood/
+ cat > $PKG/usr/bin/graywood <<EOF
+#!/bin/bash
+
+cd /usr/share/graywood/
+./graywood \$@
+
+# End of file
+EOF
+ chmod +x $PKG/usr/bin/graywood
}