updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / puzzle-pirates / PKGBUILD
blob741a76f435931fe8e3b12706b7152c194d0aec52
1 # Contributor: JP Hastings-Spital <jphastings@gmail.com>
3 pkgname=puzzle-pirates
4 pkgver=1.0
5 pkgrel=1
6 pkgdesc="An online multi-user pirate game"
7 depends=('j2re')
8 source=('http://www.puzzlepirates.com/yoclient/yohoho-install.bin')
9 md5sums=('a3ccb64babd1fdd5507a0534ac1d10fc')
10 url="http://www.puzzlepirates.com/"
11 license=
13 build() {
14         cd $startdir/src
15         #games go to /usr/share/games/
16         cat yohoho-install.bin | sed '/#!\/bin\/sh/,/exit \$res/d' > tmp.tar.gz
17         mkdir -p ../pkg/usr/share/games/yohoho
18         mkdir ../pkg/usr/bin
19         tar -xvf tmp.tar.gz -C ../pkg/usr/share/games/yohoho/
20         cd ../pkg/usr/share/games/yohoho/
21         rm finish_install.sh
22         
23         #make the JAVA symlink
24         ln -s $JAVA_HOME java
25         
26         echo "sh /usr/share/games/yohoho/yohoho" > $startdir/pkg/usr/bin/puzzle-pirates
27         chmod +x $startdir/pkg/usr/bin/puzzle-pirates