updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / ifreebudget / PKGBUILD
blobb3d17773103e37f0247615e2da461f15f92d7bfd
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=ifreebudget
4 pkgver=2.0.29
5 pkgrel=1
6 pkgdesc="A personal finance and budgeting application"
7 arch=('any')
8 url="http://www.ifreebudget.com/"
9 license=('APACHE')
10 depends=('java-runtime>=6')
11 source=(http://downloads.sourceforge.net/$pkgname/iFreeBudget-$pkgver.zip
12         fm.desktop fm.sh)
13 md5sums=('a1084467de5c30df99b772e01998202a'
14          '1042c913b5b243bdb6b3e98567b70c37'
15          'ee15c0b63e9e5122608969daa7af0779')
17 abuild() {
18   cd $srcdir/fm
19   install -dm755 $pkgdir/usr/share/java/$pkgname/{icons/{busy,dock,ec},lib,resources}
20   install -cm644 fmbin.jar splash.jpg $pkgdir/usr/share/java/$pkgname
21   install -cm644 icons/busy/* $pkgdir/usr/share/java/$pkgname/icons/busy
22   install -cm644 icons/*.* $pkgdir/usr/share/java/$pkgname/icons
23   install -cm644 lib/* $pkgdir/usr/share/java/$pkgname/lib
24   install -cm644 resources/* $pkgdir/usr/share/java/$pkgname/resources
25   install -Dm755 ../fm.sh $pkgdir/usr/bin/$pkgname
26   install -Dm644 ../fm.desktop $pkgdir/usr/share/applications/$pkgname.desktop
29 build() {
30   cd "$srcdir/fm"
31   install -Dm755 ../fm.sh "$pkgdir/usr/bin/$pkgname"
32   install -Dm644 ../fm.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
33   install -Dm644 fmbin.jar "$pkgdir/usr/share/java/$pkgname/fmbin.jar"
34   install -Dm644 splash.jpg "$pkgdir/usr/share/java/$pkgname/splash.jpg"
36   cp -rf icons lib resources "$pkgdir/usr/share/java/$pkgname"
37   find "$pkgdir/usr/share/java/$pkgname" -type d -exec chmod 755 -- '{}' \;
38   find "$pkgdir/usr/share/java/$pkgname" -type f -exec chmod 644 -- '{}' \;