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

plowshare pkgbuild with man pages

By: a guest on Jul 9th, 2010  |  syntax: Bash  |  size: 1.58 KB  |  views: 157  |  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. # Contributor: breakdown <breakdown(at)archlinux(dot)us>
  2.  
  3. pkgname=plowshare
  4. pkgver=0.9.3
  5. pkgrel=1
  6. pkgdesc="Command-line downloader and uploader for Rapidshare, Megaupload, Mediafire and other file sharing websites"
  7. arch=('i686' 'x86_64')
  8. url="http://code.google.com/p/plowshare/"
  9. license=('GPL')
  10. depends=('perl' 'recode' 'curl' 'imagemagick' 'tesseract' 'spidermonkey' 'gocr')
  11. optdepends=('aview: to show the megaupload captcha in ASCII style')
  12. source=(http://plowshare.googlecode.com/files/$pkgname-$pkgver.tgz)
  13. md5sums=('79a9857a13e0102b14d5ff4c7971d6ce')
  14.  
  15.  
  16. build() {
  17.  
  18.   cd "$srcdir/$pkgname-$pkgver"
  19.  
  20.   msg "Installing documentation"
  21.   install -d "$pkgdir/usr/share/doc/$pkgname"
  22.   install -m 644 CHANGELOG COPYING README "$pkgdir/usr/share/doc/$pkgname"
  23.   install -d "$pkgdir/usr/share/man/man1/"  
  24.   install -m 644 ./docs/* "$pkgdir/usr/share/man/man1/"
  25.  
  26.   cd src/
  27.  
  28.   msg "Installing common libraries"
  29.   install -d "$pkgdir/usr/share/$pkgname"
  30.   install -m 755 *.sh *.pl "$pkgdir/usr/share/$pkgname"
  31.  
  32.   msg "Installing modules"
  33.   install -d "$pkgdir/usr/share/$pkgname/"{modules,tesseract}
  34.   install -m 644 modules/*.sh "$pkgdir/usr/share/$pkgname/modules"
  35.   install -m 644 tesseract/* "$pkgdir/usr/share/$pkgname/tesseract"
  36.  
  37.   msg "Creating symbolic links"
  38.   install -d "$pkgdir/usr/bin"
  39.   ln -s /usr/share/$pkgname/download.sh "$pkgdir/usr/bin/plowdown"
  40.   ln -s /usr/share/$pkgname/upload.sh "$pkgdir/usr/bin/plowup"
  41.   ln -s /usr/share/$pkgname/delete.sh "$pkgdir/usr/bin/plowdel"
  42.   ln -s /usr/share/$pkgname/list.sh "$pkgdir/usr/bin/plowlist"
  43. }
  44.  
  45. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data