1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from SVN sources.
4 # Maintainer: Patrice Peterson <runiq at archlinux dot us>
9 pkgdesc="An alternate interface to the online adventure game Kingdom of Loathing."
10 arch=('i686' 'x86_64')
11 url="http://kolmafia.sourceforge.net/"
13 depends=('java-runtime')
14 makedepends=('apache-ant' 'subversion')
18 md5sums=('30c78c3c2ba560099fd527bbd2e88ea5')
20 _svntrunk=https://kolmafia.svn.sourceforge.net/svnroot/kolmafia
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver)
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
35 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
39 ant -Djarfile=$_pkgname.jar jar desktop
43 cd "$srcdir"/$_svnmod-build
44 install -D -m644 $_pkgname.jar \
45 "$pkgdir"/usr/share/java/$_pkgname/$_pkgname.jar
46 install -D -m755 $srcdir/$_pkgname.sh "$pkgdir"/usr/bin/$_pkgname
47 install -D -m644 build/$_pkgname.desktop \
48 "$pkgdir"/usr/share/applications/$_pkgname.desktop
49 install -D -m644 util/debian/kol.xpm \
50 "$pkgdir"/usr/share/pixmaps/kol.xpm