1 # Maintainer: Gordin <9ordin @t gmail dot com>
2 # Contributor: dryes <joswiseman@gmail>
4 pkgname='sabnzbd-develop-git'
7 pkgdesc='A web-interface based binary newsgrabber with NZB file support. develop branch'
9 url='http://www.sabnzbd.org/'
11 depends=('par2cmdline' 'python2' 'python-cheetah' 'python2-feedparser' 'python2-yenc' 'python2-pyopenssl' 'python2-gntp' 'unrar' 'unzip' 'zip' 'sqlite3' 'curl')
13 backup=('etc/conf.d/sabnzbd')
14 install=('sabnzbd.install')
15 conflicts=('sabnzbd' 'sabnzbd-bzr' 'sabnzbd-git')
17 replaces=('sabnzbd-bzr')
18 source=('sabnzbd.sh' 'sabnzbd.init' 'sabnzbd.confd')
19 md5sums=('0e90eab9ea5d80de91e2af41e84eb4cc' '7bd776f2c369026bb47e3d95982a0501' 'bc1723a2dd17d792785e1f6009b35751')
21 _gitroot="https://github.com/sabnzbd/sabnzbd.git"
27 msg "Connecting to GIT server...."
29 if [ -d ${_gitname} ] ; then
30 cd ${_gitname} && git pull origin
31 msg "The local files are updated."
33 git clone ${_gitroot} ${_gitname} -b ${_branch} --depth=1
36 msg "GIT checkout done or server timeout"
39 sed -i "s/system('python /system('python2 /" package.py
40 sed -i "/win\//d" package.py
41 python2 ./package.py source
45 mkdir -p "${pkgdir}/opt"
46 cp -r "${srcdir}/sabnzbd/srcdist" "${pkgdir}/opt"
47 mv "${pkgdir}/opt/srcdist" "${pkgdir}/opt/sabnzbd"
49 install -D -m755 "${srcdir}/sabnzbd.sh" "${pkgdir}/usr/bin/sabnzbd"
50 install -D -m755 "${srcdir}/sabnzbd.init" "${pkgdir}/etc/rc.d/sabnzbd"
51 install -D -m644 "${srcdir}/sabnzbd.confd" "${pkgdir}/etc/conf.d/sabnzbd"