| 1 | # Description: nPush is a logic game similar to Sokoban and Boulder Dash |
| 2 | # URL: http://npush.sourceforge.net/ |
| 3 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 4 | # Depends on: |
| 5 | |
| 6 | name=npush |
| 7 | version=0.7 |
| 8 | release=4 |
| 9 | source=(http://dl.sourceforge.net/project/$name/$name/$version/$name-$version.tgz) |
| 10 | |
| 11 | build() { |
| 12 | cd $name-$version |
| 13 | make CC="$CXX $CFLAGS" |
| 14 | install -D -m 0755 $name $PKG/usr/share/$name/$name |
| 15 | mv levels $PKG/usr/share/$name |
| 16 | install -d $PKG/usr/bin |
| 17 | cat > $PKG/usr/bin/$name <<EOF |
| 18 | #!/bin/bash |
| 19 | |
| 20 | cd /usr/share/npush |
| 21 | ./npush \$@ |
| 22 | |
| 23 | # End of file |
| 24 | EOF |
| 25 | chmod +x $PKG/usr/bin/$name |
| 26 | } |