updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / tilitin / PKGBUILD
blob4f80c463bc4a7b70b5b9e4af433378c58c97449c
1 # Maintainer: Tommi Helineva <tommi.helineva+aur@gmail.com>
2 pkgname=tilitin
3 pkgver=1.1.1
4 pkgrel=1
5 pkgdesc="A Finnish accounting software"
6 arch=('any')
7 url="http://helineva.net/tilitin/"
8 license=('GPL3')
9 depends=('java-environment')
10 makedepends=('apache-ant')
11 install='tilitin.install'
12 source=(tilitin.sh tilitin.desktop http://helineva.net/tilitin/tilitin-${pkgver}-src.zip)
13 sha1sums=('7c244c5aee25582597491895d4ecb876ed809b7e'
14           'd7ad246707019abb960458a9a01501a2a4fd65a2'
15           '71dcb91eff1a4990d04569006780900d8f5503d9')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   /usr/share/java/apache-ant/bin/ant
22 package() {
23   install -D -m 755 $startdir/tilitin.sh $pkgdir/usr/bin/tilitin
24   install -D -m 644 $startdir/tilitin.desktop $pkgdir/usr/share/applications/tilitin.desktop
25   cd "$srcdir/$pkgname-$pkgver"
26   install -D -m 644 dist/tilitin.jar $pkgdir/usr/lib/tilitin/tilitin.jar
27   mkdir -p $pkgdir/usr/lib/tilitin/tilikarttamallit
28   install -D -m 644 lib/itext.jar $pkgdir/usr/lib/tilitin/itext.jar
29   install -D -m 644 lib/postgresql-jdbc.jar $pkgdir/usr/lib/tilitin/postgresql-jdbc.jar
30   install -D -m 644 lib/sqlite-jdbc.jar $pkgdir/usr/lib/tilitin/sqlite-jdbc.jar
31   install -m 644 tilikarttamallit/*.jar $pkgdir/usr/lib/tilitin/tilikarttamallit/
32   install -D -m 644 src/kirjanpito/ui/resources/tilitin-24x24.png $pkgdir/usr/share/icons/hicolor/24x24/apps/tilitin.png
33   install -D -m 644 src/kirjanpito/ui/resources/tilitin-32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/tilitin.png
34   install -D -m 644 src/kirjanpito/ui/resources/tilitin-48x48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/tilitin.png