updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hodoku-build / PKGBUILD
blob17e52aafd6aaaad3a2f708e79cf5dd6e0f50e052
1 # Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
3 pkgname=hodoku-build
4 pkgver=2.1.3
5 pkgrel=1
6 pkgdesc="A sudoku helper written in Java"
7 arch=('any')
8 url=('http://hodoku.sourceforge.net')
9 license=('GPL3')
10 depends=('java-runtime')
11 makedepends=('apache-ant' 'java-environment')
12 conflicts=('hodoku')
14 _PKGNAME=hodoku
15 _PKGCLASS=HoDoKu
17 source=("http://downloads.sourceforge.net/project/$_PKGNAME/$_PKGNAME/${_PKGNAME}_${pkgver}/$_PKGNAME-${pkgver//./-}-src.zip"
18         "$_PKGNAME.sh"
19         "$_PKGNAME.desktop")
20 md5sums=('2570469bd57204bf5dc280779149d663'
21          'd29a1647df264d1379ae48783ff2eb38'
22          '557ca158902fddf06cbda7c7c9480c08')
24 build()
26     cd "$srcdir/$_PKGCLASS"
27     ant jar
30 package()
32     cd "$srcdir/$_PKGCLASS"
33     install -m 644 -D "dist/$_PKGCLASS.jar" \
34         "$pkgdir/usr/share/java/$_PKGNAME/$_PKGNAME.jar"
35     install -m 644 -D "src/img/${_PKGNAME}02-256.png" \
36         "$pkgdir/usr/share/pixmaps/$_PKGNAME.png"
37     install -m 755 -D "$srcdir/$_PKGNAME.sh" \
38         "$pkgdir/usr/bin/$_PKGNAME"
39     install -m 644 -D "$srcdir/$_PKGNAME.desktop" \
40         "$pkgdir/usr/share/applications/$_PKGNAME.desktop"