updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jskat-svn / PKGBUILD
blob48767d6e3ee7eb38dedf638a93e19299e0ebfa63
1 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=jskat-svn
3 pkgver=1588
4 pkgrel=1
5 pkgdesc="free implementation of the German card game Skat in Java"
6 arch=('any')
7 url="http://www.jskat.de"
8 license=('GPL2')
9 groups=()
10 depends=('java-runtime')
11 makedepends=('apache-ant' 'subversion')
12 source=(jskat.sh)
13 md5sums=('9a5f4f028121d878f1bb6caab016e135')
14 noextract=()
16 _svntrunk=https://jskat.svn.sourceforge.net/svnroot/jskat
17 _svnmod=jskat
19 build() {
20   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   [[ -d $srcdir/$_svnmod-build ]] && rm -rf "$srcdir/$_svnmod-build"
32   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33   cd "$srcdir/$_svnmod-build/jskat/branches/jansch/jskat"
35   #
36   # BUILD
37   #
38   /usr/share/java/apache-ant/bin/ant
39   install -Dm644 JSkat.jar $pkgdir/usr/share/java/$pkgname/JSkat.jar
40   install -Dm755 $srcdir/jskat.sh $pkgdir/usr/bin/jskat