mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
40 lines
1.8 KiB
Bash
40 lines
1.8 KiB
Bash
|
# No Plugbox changes, this is just from AUR but has been requested
|
||
|
# very, very often.
|
||
|
|
||
|
pkgname=sabnzbd
|
||
|
pkgver=0.5.4
|
||
|
pkgrel=3
|
||
|
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
||
|
arch=(i686 x86_64)
|
||
|
url="http://www.sabnzbd.org/"
|
||
|
license=('GPL')
|
||
|
depends=('par2cmdline' 'python' 'python-cheetah' 'python-feedparser' 'python-yenc' 'pyopenssl' 'unrar' 'unzip' 'sqlite3' 'curl')
|
||
|
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)
|
||
|
|
||
|
md5sums=('b64e5d47ea4c115b98dd96744946c89d'
|
||
|
'f45907d98a19052eaeb7ad98ff13b16d'
|
||
|
'0300f4804c7abcfc7013b3a90b83c38c'
|
||
|
'dc5fdcc132033b38e2f34d2355d573be'
|
||
|
'a83d735a8a21b68622ed0d6ac1139a9e'
|
||
|
'11fb2cd1451e3725b08bfc2bd045be54'
|
||
|
'3287c7a1becdf0a4f7276cfbccb301dd')
|
||
|
|
||
|
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
|
||
|
install -D -m755 $startdir/addnzb.sh $startdir/pkg/opt/sabnzbd/addnzb.ssh
|
||
|
install -D -m770 $startdir/x-nzb.xml $startdir/pkg/opt/sabnzbd/x-nzb.xml
|
||
|
}
|