updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / xoridor / PKGBUILD
blob10c5be3e13f0b2bff7609f9a52d922e00659d0c1
1 # Contributer: Xavier de Labouret <arch@2-lab.net>
2 pkgname=xoridor
3 pkgver=0.4
4 pkgrel=3
5 pkgdesc="A boardgame, where you have to reach the last rank. Players can block each other by placing walls on the board."
6 arch=('i686' 'x86_64')
7 url="https://sourceforge.net/projects/xoridor/"
8 license="GPL"
9 depends=('java-runtime')
10 source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.jar)
11 md5sums=('8865ef5ad9692d8ea19bea08a87c2d66')
13 build() {
14         mkdir -p $startdir/pkg/usr/bin
15         cd $startdir/src
16         install -D -m644 $pkgname-$pkgver.jar \
17         $startdir/pkg/usr/share/java/$pkgname/$pkgname-$pkgver.jar
19         # Create the binary
20         cat > $startdir/pkg/usr/bin/$pkgname << "EOF"
21 #!/bin/sh
23 CP=/usr/share/java/$pkgname/xoridor-0.4.jar
25 exec java -cp $CLASSPATH:$CP -jar /usr/share/java/xoridor/xoridor-0.4.jar
26 EOF
27         chmod 775 $startdir/pkg/usr/bin/$pkgname