Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD sabnzbd 0.5.2

By: a guest on May 3rd, 2010  |  syntax: Bash  |  size: 1.29 KB  |  views: 344  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=sabnzbd
  2. pkgver=0.5.2
  3. pkgrel=1
  4. pkgdesc="A web-interface based binary newsgrabber with NZB file support"
  5. arch=(i686 x86_64)
  6. url="http://www.sabnzbd.org/"
  7. license=('GPL')
  8. depends=('par2cmdline' 'python' 'python-cheetah' 'python-feedparser' 'python-yenc' 'pyopenssl' 'unrar' 'unzip' 'sqlite3' 'curl')
  9. install=sabnzbd.install
  10. backup=('/etc/conf.d/sabnzbd' '/opt/sabnzbd/sabnzbd.ini')
  11. source=("http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-$pkgver-src.tar.gz" sabnzbd sabnzbd.init sabnzbd.confd)
  12. md5sums=('3ffed9e6680e628a3c3b2cc6cbc50188'
  13.          'f45907d98a19052eaeb7ad98ff13b16d'
  14.          'ceaa5363cdc37e264a829af65adde36b'
  15.          '1b0b374905d1ae3cb81cd16de29a972e')
  16.  
  17. build() {
  18.         mkdir -p $startdir/pkg/opt/sabnzbd
  19.         mv -v $startdir/src/SABnzbd-$pkgver/* $startdir/pkg/opt/sabnzbd/
  20.         find $startdir/pkg/opt/sabnzbd -type d -exec chmod 755 {} \;
  21.         find $startdir/pkg/opt/sabnzbd -type f -exec chmod 644 {} \;
  22.         chmod 755 $startdir/pkg/opt/sabnzbd/SABnzbd.py
  23.         chmod 755 $startdir/pkg/opt/sabnzbd/Sample-PostProc.sh
  24.         install -D -m755 $startdir/sabnzbd $startdir/pkg/usr/bin/sabnzbd
  25.         install -D -m755 $startdir/sabnzbd.init $startdir/pkg/etc/rc.d/sabnzbd
  26.         install -D -m644 $startdir/sabnzbd.confd $startdir/pkg/etc/conf.d/sabnzbd
  27. }