updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bitflu / PKGBUILD
blob0320b9427f3cde33a707f4619c316a2556e6dd83
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: rabyte <rabyte*gmail>
4 pkgname=bitflu
5 pkgver=1.37
6 pkgrel=1
7 pkgdesc="A download daemon supporting the BitTorrent and HTTP protocols"
8 arch=('any')
9 url="http://bitflu.workaround.ch/"
10 license=('PerlArtistic')
11 depends=('perl-danga-socket' 'perl-digest-sha1')
12 source=(http://$pkgname.workaround.ch/$pkgname/$pkgname-$pkgver.tgz)
13 md5sums=('06f2f855b7c4947ac11912e6f3647cf7')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
17   sed -i "s,\.\(/plugins\),/usr/share/$pkgname\1," $pkgname.pl
18   install -Dm755 $pkgname.pl "$pkgdir/usr/bin/$pkgname"
19   install -Dm644 README.txt "$pkgdir/usr/share/doc/$pkgname/README"
20   install -m644 README_IPv6.txt "$pkgdir/usr/share/doc/$pkgname/"
22   install -dm755 "$pkgdir/usr/share/$pkgname/plugins/Bitflu"
23   install -m644 plugins/Bitflu/*.pm "$pkgdir/usr/share/$pkgname/plugins/Bitflu"
24   install -m644 $pkgname.config.example "$pkgdir/usr/share/$pkgname"