updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / wordbiz / PKGBUILD
blob9d273e287b508ccb484359a531a68ae702c22b5f
1 # Contributor: Ramana.Kumar at gmail dot com
2 pkgname=wordbiz
3 pkgver=1.8
4 pkgrel=3
5 pkgdesc="Internet Scrabble Club client"
6 arch=("x86_64" "i686")
7 url="http://www.isc.ro"
8 license=("unknown")
9 depends=("java-runtime")
10 backup=("opt/WordBiz/Config")
11 source=("http://www.isc.ro/linux/WordBiz18linux.zip")
12 md5sums=('b74e83e77426dd89f77a7756759bc3b8')
14 build() {
15   mkdir -p $pkgdir/opt
16   cp -r $srcdir/WordBiz $pkgdir/opt
17   mkdir -p $pkgdir/usr/bin
18   cat <<END > $pkgdir/usr/bin/wordbiz
19 #!/bin/sh
20 cd /home/$USER
21 if [! -d .WordBiz ]; then
22 mkdir .WordBiz
24 cd .WordBiz
25 java -jar /opt/WordBiz/wordbiz.jar
26 END
27   chmod +x $pkgdir/usr/bin/wordbiz
28   chgrp games $pkgdir/opt/WordBiz || return 1
29   chmod g+w $pkgdir/opt/WordBiz