Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 12th, 2010  |  syntax: Bash  |  size: 1.86 KB  |  views: 209  |  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. # Contributors: William Díaz <wdiaz [at] archlinux [dot] us>
  2. #        Mladen Pejaković <pejakm@gmail.com>
  3. #               Thomas Jost (Schnouki) <thomas.jost@gmail.com>
  4. #               Kaleb Elwert <vahki.ttc@gmail.com>
  5.  
  6. pkgname=slimrat-svn
  7. pkgver=426
  8. pkgrel=1
  9. pkgdesc="Command line and GUI utility for downloading files from rapidshare.com (free), depositfiles.com, youtube.com and other sharing servers"
  10. url="http://code.google.com/p/slimrat"
  11. license=('MIT')
  12. arch=('i686' 'x86_64')
  13. depends=('perl' 'perl-www-mechanize' 'perl-json' 'perl-crypt-ssleay' 'perl-http-response-encoding' 'perl-spiffy' 'perl-json')
  14. makedepends=('subversion')
  15. optdepends=('aview:        for CAPTCHA support in command line'
  16.              feh:          for CAPTCHA support in command line'
  17.            'tesseract:    for OCR solving'
  18.            'glade-perl:   for GUI'
  19.            'xclip:        for clipboard support in GUI'
  20.            'imagemagick:  for pass to ImageMagick convert binary')
  21. backup=('etc/slimrat.conf')
  22. conflicts=('slimrat')
  23. provides=(slimrat=${pkgver})
  24. install=slimrat.install
  25. source=(slimrat.desktop)
  26. md5sums=('c7c2e8aa2c145e1c66753bdff84aebdd')
  27.  
  28. _svntrunk=http://slimrat.googlecode.com/svn/trunk/
  29. _svnmod=slimrat-svn
  30.  
  31. build() {
  32.  cd ${srcdir}
  33.  
  34.  if [ -d ${_svnmod}/.svn ]; then
  35.     (cd ${_svnmod} && svn up -r ${pkgver})
  36.  else
  37.     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
  38.  fi
  39.  
  40.  install -d ${pkgdir}/usr/lib/ ${pkgdir}/usr/bin ${pkgdir}/etc
  41.  cp -rb ${srcdir}/$_svnmod/src/ ${pkgdir}/usr/lib/slimrat/
  42.  cp ${srcdir}/$_svnmod/slimrat.conf ${pkgdir}/etc/slimrat.conf
  43.  install -D -m 644 ${srcdir}/slimrat.desktop ${pkgdir}/usr/share/applications/slimrat.desktop || return 1
  44.  ln -s /usr/lib/slimrat/slimrat ${pkgdir}/usr/bin/slimrat
  45.  ln -s /usr/lib/slimrat/slimrat-gui ${pkgdir}/usr/bin/slimrat-gui
  46.  find ${pkgdir} -type d -name .svn -exec rm -rf \{\} +
  47. }
clone this paste RAW Paste Data