updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / hodoku-build / PKGBUILD
blob67e1bb6bb12950484382215379c33f9d32c7ac63
1 # Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
3 pkgname=hodoku-build
4 pkgver=2.1.2
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=('63251f5a4bed060c0f39d95cb28222a1'
21          'd29a1647df264d1379ae48783ff2eb38'
22          '557ca158902fddf06cbda7c7c9480c08')
23 build()
25     cd "$srcdir/$_PKGCLASS"
26     ant jar
29 package()
31     cd "$srcdir/$_PKGCLASS"
32     install -m 644 -D "dist/$_PKGCLASS.jar" \
33         "$pkgdir/usr/share/java/$_PKGNAME/$_PKGNAME.jar"
34     install -m 644 -D "src/img/${_PKGNAME}02-256.png" \
35         "$pkgdir/usr/share/pixmaps/$_PKGNAME.png"
36     install -m 755 -D "$srcdir/$_PKGNAME.sh" \
37         "$pkgdir/usr/bin/$_PKGNAME"
38     install -m 644 -D "$srcdir/$_PKGNAME.desktop" \
39         "$pkgdir/usr/share/applications/$_PKGNAME.desktop"