updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / freerapid / PKGBUILD
blobf15fc16610495070c41d11c8d34665ae6d7ce73f
1 # Maintainer: Vojtech Kral <kral.vojtech at gmail>
2 # Contributor:  Arkham <arkham at archlinux dot us>
3 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
5 pkgname=freerapid
6 pkgver=0.86u1
7 _build=''
8 pkgrel=1
9 pkgdesc="A Java-based download manager for Rapidshare and other file sharing archives"
10 arch=('any')
11 url="http://wordrider.net/freerapid/"
12 license=('GPL')
13 depends=('java-runtime')
14 provides=('frd')
15 source=(http://files.kral.hk/frd/FreeRapid-${pkgver}${_build}.zip
16         $pkgname.sh
17         $pkgname.desktop)
19 sha256sums=('c74b03feb24f3a61f4d34691a9bacf7834e4eb02ef6e5150f22057cedc411a9c'
20             'd165e2a4aa8dbf2e567589a657546f805998284d7939f20be75dab50139abd84'
21             '5bbca23e1d4225f86aecc84d50ebe100c32b42522cb684a55feecab1ca21e13c')
23 # build()
24 # {
25 # }
27 package()
29     cd $srcdir/FreeRapid-$pkgver$_build
31     # Copy data and fix permissions
32     install -d "$pkgdir/usr/share/$pkgname"
33     cp -rf frd.jar lib/ lookandfeel/ plugins/ "$pkgdir/usr/share/$pkgname/"
34     find "$pkgdir/usr/share/$pkgname" -type f -exec chmod 644 '{}' +
36     # Install bin, icon and desktop file
37     install -Dm 755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
38     ln -sf "$pkgname" "$pkgdir/usr/bin/frd"
39     install -Dm 644 frd.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
40     install -Dm 644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"