2011-02-03 18:42:54 +00:00
|
|
|
# PlugApps changes: None, this is straight from AUR.
|
2011-01-11 04:06:24 +00:00
|
|
|
|
2011-02-03 19:29:13 +00:00
|
|
|
plugrel=1
|
|
|
|
|
2010-09-14 04:47:33 +00:00
|
|
|
pkgname=sabnzbd
|
2010-12-22 20:36:48 +00:00
|
|
|
pkgver=0.5.6
|
2011-02-03 18:42:54 +00:00
|
|
|
pkgrel=2
|
2010-09-14 04:47:33 +00:00
|
|
|
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://www.sabnzbd.org/"
|
|
|
|
license=('GPL')
|
2011-02-03 18:42:54 +00:00
|
|
|
depends=('par2cmdline' 'python2' 'python-cheetah' 'python-feedparser' 'python-yenc' 'python2-pyopenssl' 'unrar' 'unzip' 'sqlite3' 'curl')
|
2010-09-14 04:47:33 +00:00
|
|
|
install=sabnzbd.install
|
|
|
|
backup=('etc/conf.d/sabnzbd' 'opt/sabnzbd/sabnzbd.ini')
|
|
|
|
source=("http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-$pkgver-src.tar.gz"
|
|
|
|
sabnzbd sabnzbd.init sabnzbd.confd sabnzbd.desktop x-nzb.xml addnzb.sh)
|
|
|
|
|
2010-12-22 20:36:48 +00:00
|
|
|
md5sums=('6a43179f42e31bed3faa0135a213bc65'
|
2010-09-14 04:47:33 +00:00
|
|
|
'f45907d98a19052eaeb7ad98ff13b16d'
|
2010-12-22 20:36:48 +00:00
|
|
|
'2cd5c68bedc609dcff49871e0c94df54'
|
2010-09-14 04:47:33 +00:00
|
|
|
'dc5fdcc132033b38e2f34d2355d573be'
|
2010-12-22 20:36:48 +00:00
|
|
|
'4322c935bbe37f83a1b24cb1396a1762'
|
2010-09-14 04:47:33 +00:00
|
|
|
'11fb2cd1451e3725b08bfc2bd045be54'
|
2010-12-22 20:36:48 +00:00
|
|
|
'65d60b1b2209138e0825a8e7b1abdcdd')
|
2010-09-14 04:47:33 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir -p $startdir/pkg/opt/sabnzbd
|
|
|
|
touch $startdir/pkg/opt/sabnzbd/sabnzbd.ini
|
|
|
|
mv -v $startdir/src/SABnzbd-$pkgver/* $startdir/pkg/opt/sabnzbd/
|
|
|
|
find $startdir/pkg/opt/sabnzbd -type d -exec chmod 755 {} \;
|
|
|
|
find $startdir/pkg/opt/sabnzbd -type f -exec chmod 644 {} \;
|
|
|
|
chmod 755 $startdir/pkg/opt/sabnzbd/SABnzbd.py
|
|
|
|
chmod 755 $startdir/pkg/opt/sabnzbd/Sample-PostProc.sh
|
|
|
|
install -D -m755 $startdir/sabnzbd $startdir/pkg/usr/bin/sabnzbd
|
|
|
|
install -D -m755 $startdir/sabnzbd.init $startdir/pkg/etc/rc.d/sabnzbd
|
|
|
|
install -D -m644 $startdir/sabnzbd.confd $startdir/pkg/etc/conf.d/sabnzbd
|
|
|
|
install -D -m755 $startdir/sabnzbd.desktop $startdir/pkg/usr/share/applications/sabnzbd.desktop
|
2010-12-22 20:36:48 +00:00
|
|
|
install -D -m755 $startdir/addnzb.sh $startdir/pkg/opt/sabnzbd/addnzb.sh
|
2010-09-14 04:47:33 +00:00
|
|
|
install -D -m770 $startdir/x-nzb.xml $startdir/pkg/opt/sabnzbd/x-nzb.xml
|
2010-12-22 20:36:48 +00:00
|
|
|
|
|
|
|
# Fix for issues with Python 3
|
|
|
|
find $startdir/pkg/opt/sabnzbd -type f -exec sed -i 's/python/python2/g' {} \;
|
2010-09-14 04:47:33 +00:00
|
|
|
}
|