Commit | Line | Data |
---|---|---|
bbeace98 VM |
1 | # Description: Pacman game for console |
2 | # URL: http://doctormike.googlepages.com/pacman.html | |
68500f01 | 3 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
bbeace98 VM |
4 | # Depends on: ncurses |
5 | ||
6 | name=pacman | |
7 | version=1.2 | |
68500f01 | 8 | release=1 |
bbeace98 VM |
9 | source=(http://doctormike.googlepages.com/$name-$version.tar.gz) |
10 | ||
11 | build() { | |
12 | cd $name-$version | |
13 | sed -i "s|/usr/local/share/pacman/Levels/|/usr/share/pacman/levels/|g" pacman.h | |
14 | $CC -lncurses pacman.c -o pacman | |
15 | $CC -lncurses pacmanedit.c -o pacmanedit | |
16 | install -D -m 0755 $name $PKG/usr/share/$name/$name | |
17 | install -D -m 0755 pacmanedit $PKG/usr/bin/pacmanedit | |
18 | mv Levels $PKG/usr/share/$name/levels | |
19 | install -d $PKG/usr/bin | |
20 | cat > $PKG/usr/bin/$name <<EOF | |
21 | #!/bin/bash | |
22 | ||
23 | cd /usr/share/pacman | |
24 | ./pacman | |
25 | ||
26 | # End of file | |
27 | EOF | |
28 | chmod +x $PKG/usr/bin/$name | |
29 | } |