1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: rabyte <rabyte*gmail>
7 pkgdesc="A download daemon supporting the BitTorrent and HTTP protocols"
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')
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"