This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 15th, 2010  |  syntax: None  |  size: 1.44 KB  |  views: 213  |  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: Christopher Schwaab -- christopher.schwaab gmail
  2. pkgname=mendeleydesktop
  3. pkgver=0.9.7
  4. pkgrel=1
  5. url="http://www.mendeley.com/"
  6. pkgdesc="The desktop client for managing and sharing research papers."
  7. license=('custom:mendeley_eula')
  8. arch=('i686' 'x86_64')
  9. [ ${CARCH} = 'x86_64' ] && _arch='x86_64'
  10. [ ${CARCH} = 'i686' ]   && _arch='i486'
  11. source=("http://www.mendeley.com/downloads/linux/${pkgname}-${pkgver}-linux-${_arch}.tar.bz2")
  12. [ ${CARCH} = 'x86_64' ] && md5sums=('e36030c554232b7d83f8c02352b72367')
  13. [ ${CARCH} = 'i686' ]   && md5sums=('6e87e1a87642bff64ad385aa15eb6330')
  14. depends=('qt' 'openssl' 'sqlite3' 'openssl-compatibility' 'libpng12')
  15. makedepends=('cpio')
  16.  
  17. build() {
  18.   cd ${srcdir}/${pkgname}-${pkgver}-linux-${_arch}
  19.  
  20.   mkdir -p ${pkgdir}/opt/mendeleydesktop/bin
  21.   mkdir -p ${pkgdir}/usr/bin
  22.  
  23.   install -m755 \
  24.      lib/mendeleydesktop/libexec/{Updater,mendeleydesktop.${_arch}} \
  25.      ${pkgdir}/opt/mendeleydesktop/bin || return 1
  26.  
  27.   sed -i 's|"$LOCAL_LIB_PATH"/mendeleydesktop/libexec/|LD_LIBRARY_PATH=/opt/mendeleydesktop/lib:$LD_LIBRARY_PATH /opt/mendeleydesktop/bin/|' \
  28.          bin/mendeleydesktop || return 1
  29.   install -D -m755 bin/mendeleydesktop \
  30.   ${pkgdir}/usr/bin/mendeleydesktop || return 1
  31.  
  32.   rm -f lib/libQt*
  33.   rm -rf lib/mendeleydesktop
  34.  
  35.   mv lib ${pkgdir}/opt/mendeleydesktop/
  36.   mv share ${pkgdir}/usr/
  37.  
  38.   install -D -m644 LICENSE \
  39.   ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
  40. }
clone this paste RAW Paste Data