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

Untitled

By: a guest on Nov 8th, 2011  |  syntax: Bash  |  size: 1.17 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=mendeleydesktop
  2. pkgver=1.1.3
  3. pkgrel=1
  4. pkgdesc="Academic software for managing and sharing research papers (desktop client)"
  5. url=http://www.mendeley.com/release-notes/
  6. arch=(i686 x86_64)
  7. depends=(python2 qt)
  8. license=(custom:mendeley_eula)
  9.  
  10. _arch=$CARCH
  11. [[ $CARCH = i686 ]] && _arch=i486
  12.  
  13. source=("http://s3.amazonaws.com/mendeley-desktop-download/linux/$pkgname-$pkgver-linux-$_arch.tar.bz2")
  14. md5sums=('55719984f706e4f71718a7f1674ef046')
  15. sha256sums=('3d686c3f2fa2db75eafe9b7aac81c68c17cbfd0d84fac7ab51dbd11204cea14a')
  16.  
  17. if [[ $CARCH = x86_64 ]]; then
  18.         md5sums=('3fc090c8d4a61154f3d1d979ff1bf09e')
  19.         sha256sums=('8d7da5f238b1ab2a8dc2611dddc1d7566e4526ef79e0334bf4d9e9601e947d62')
  20. fi
  21.  
  22. package() {
  23.         cd "$pkgname-$pkgver-linux-$_arch"
  24.  
  25.         rm -f share/doc/mendeleydesktop/*.txt
  26.         install -dm755 "$pkgdir/opt/$pkgname/"{,bin}
  27.         mv lib share "$pkgdir/opt/$pkgname/"
  28.         ln -s "../lib/mendeleydesktop/libexec/mendeleydesktop.$_arch" "$pkgdir/opt/$pkgname/bin/$pkgname"
  29.  
  30.         sed -i '1s@^#!/usr/bin/python$@&2@' "bin/mendeleydesktop"
  31.         install -Dm755 "bin/mendeleydesktop" "$pkgdir/usr/bin/mendeleydesktop"
  32.  
  33.         install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  34. }
  35.  
  36.  
clone this paste RAW Paste Data