1 # Maintainer: Soup <soup a.t soultrap d.o.t n.e.t>
2 # Contributor: Roland Kammerer <dev.rck@gmail.com>
7 pkgdesc="nzb downloader and post processor"
8 url="http://www.hellanzb.com"
9 depends=('python2' 'twisted-web2' 'par2cmdline' 'unrar' 'python2-pyopenssl')
10 source=("hellanzb.rc" "hellanzb.conf.d" "877271.diff" "877271-2.diff" "877281.diff" "par2fix.diff")
11 arch=('i686' 'x86_64')
12 conflicts=('hellanzb')
16 install=hellanzb.install
17 backup=('etc/conf.d/hellanzb')
18 md5sums=('e33d67945276f754e3ba406bd947296d'
19 '0bda37be41e3d0662bd8cdb0fdff6a20'
20 'e02e555616f9ffd748f3aedaaf17d143'
21 '93160251bb66d63cbc55e79765b3b1db'
22 'c0da3f5b87a84abe2d5cb7c3d87769df'
23 '3337cb86e63325a6ffb81842f9cbaff3' )
27 git clone git://github.com/pjenvey/hellanzb.git
31 # change the configuration directories searched from /usr/etc to /etc and
32 # from ./etc to ~/.config
34 -e "\|confDirs = |s|sys.prefix|'/'|" \
35 -e "\|confDirs\.append|s|join(os.getcwd(), *'etc|expanduser('~/.config|" \
38 patch < $srcdir/877271.diff $srcdir/hellanzb/Hellanzb/HellaXMLRPC/xmlrpc.py
39 patch < $srcdir/877271-2.diff $srcdir/hellanzb/Hellanzb/HellaXMLRPC/HtPasswdAuth.py
40 patch < $srcdir/877281.diff $srcdir/hellanzb/Hellanzb/HellaReactor.py
41 patch < $srcdir/par2fix.diff $srcdir/hellanzb/Hellanzb/PostProcessorUtil.py
43 python2 ./setup.py install --root=$pkgdir
45 # not cool, but the compiled version is always bad for me so this forces a re-compile
47 touch $pkgdir/usr/lib/python2.7/site-packages/Hellanzb/HellaXMLRPC/xmlrpc.py \
48 $pkgdir/usr/lib/python2.7/site-packages/Hellanzb/HellaXMLRPC/HtPasswdAuth.py \
49 $pkgdir/usr/lib/python2.7/site-packages/Hellanzb/HellaReactor.py \
50 $pkgdir/usr/lib/python2.7/site-packages/Hellanzb/PostProcessorUtil.py
52 # move /usr/etc to /etc
53 mv $pkgdir/usr/etc $pkgdir/
55 install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
57 # install the rc scripts
58 mkdir -p $pkgdir/etc/{rc.d,conf.d}
59 install -D -m755 $srcdir/hellanzb.rc $pkgdir/etc/rc.d/hellanzb
60 install -D -m644 $srcdir/hellanzb.conf.d $pkgdir/etc/conf.d/hellanzb