updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / torrent-leecher / PKGBUILD
blob795c1a10faaa4a4389716ab4fdf0ce32d8c2e11b
1 # Maintainer: Olli Laasonen <admin at laasonen dot net>
3 pkgname=torrent-leecher
4 pkgver=0.3.4
5 pkgrel=1
6 pkgdesc="A daemon/proxy for BitTorrent clients that manipulates traffic statistics sent to the tracker. Remember to seed!"
7 url="http://aur.archlinux.org/packages.php?ID=41390"
8 install="torrent-leecher.install"
9 arch=('any')
10 license=('AGPL')
11 depends=('python')
12 backup=('etc/torrent-leecher.conf')
13 source=(Configs.py
14         DataUnits.py
15         HttpClient.py
16         HttpServer.py
17         Logs.py
18         Main.py
19         Manipulator.py
20         run
21         torrent-leecher
22         torrent-leecher.conf
23         torrent-leecher-logs
25 md5sums=('23ada9475fcd755014b6b127f9537bcb'
26         'aff859724da6f53a24e0439d00f8c41a'
27         'b4fa74347af080bbb894b882532f2a6a'
28         'bb5db2578c3bca15c7b66fbba6d13542'
29         '1ccd3dd9e693dd10c3aa6f3e45c089f1'
30         '06e98e0c656159631aa77e6888a243b8'
31         'ce327d7e9e2c1b6c326dfbc6bdbe100b'
32         '7ac3d238fd259dfe6843e4d9a5453bee'
33         '0bab40e196717aa1b2cd98e2e6b642a3'
34         'a25b3e4610ea25b972ceef7d4d34895e'
35         '5dbcb2fd200a816ee29f63086c13f747'
37 build(){
38         if [ -a $srcdir/$pkgname-$pkgver ]
39         then
40                 echo "Deleting old build folder.."
41                 rm -R $srcdir/$pkgname-$pkgver
42                 echo ""
43         fi
44         echo "Preparing files.."
45         chmod +x $srcdir/run
46         chmod +x $srcdir/torrent-leecher
47         chmod +x $srcdir/torrent-leecher-logs
48         echo ""
49         echo "Coping files.."
50         install -d $pkgdir/etc
51         install -d $pkgdir/etc/rc.d/
52         install -d $pkgdir/usr/bin/
53         install -d $pkgdir/opt/torrent-leecher/
54         cp $srcdir/torrent-leecher.conf $pkgdir/etc/
55         cp $srcdir/torrent-leecher $pkgdir/etc/rc.d/
56         cp $srcdir/torrent-leecher-logs $pkgdir/usr/bin/
57         cp $srcdir/run $srcdir/DataUnits.py $srcdir/Configs.py $srcdir/HttpServer.py $srcdir/HttpClient.py $srcdir/Logs.py $srcdir/Main.py $srcdir/Manipulator.py $pkgdir/opt/torrent-leecher/