Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Unnamed
Sunday, October 31st, 2010 at 10:33:40pm UTC 

  1. # Maintainer: Alexandre Guimaraes - alexandre.guimaraes gmx.com
  2. # Contributor: Christopher Schwaab -- christopher.schwaab gmail
  3. pkgname=mendeleydesktop
  4. pkgver=0.9.8.1
  5. pkgrel=1
  6. url="http://www.mendeley.com/"
  7. pkgdesc="The desktop client for managing and sharing research papers."
  8. license=('custom:mendeley_eula')
  9. arch=('i686' 'x86_64')
  10. [ $CARCH = 'x86_64' ] && _arch='x86_64'
  11. [ $CARCH = 'i686' ]   && _arch='i486'
  12. source=("http://www.mendeley.com/downloads/linux/$pkgname-$pkgver-linux-$_arch.tar.bz2")
  13. [ $CARCH = 'x86_64' ] && md5sums=('6a8e143d69a4b530c02f3821b6d50fc2')
  14. [ $CARCH = 'i686' ]   && md5sums=('eba9e819c3942ef15dd0d860fbb375ca')
  15. depends=('qt' 'openssl' 'sqlite3' 'openssl-compatibility' 'libpng12')
  16. makedepends=('cpio')
  17.  
  18. build() {
  19.         cd $srcdir/$pkgname-$pkgver-linux-$_arch
  20.  
  21.         mkdir -p $pkgdir/opt/mendeleydesktop/{bin,lib,plugins}
  22.         mkdir -p $pkgdir/usr/{bin,lib}
  23.  
  24.         rm -f INSTALL README
  25.  
  26.         # install libs
  27.         mv lib/libMendeley.so lib/libMendeley.so.0.9 \
  28.            $pkgdir/usr/lib/
  29.         install -m755 lib/libMendeley.so.$pkgver \
  30.                       lib/libPDFNetC.so \
  31.                       $pkgdir/usr/lib/
  32.         install -m755 lib/libpng.so.3 lib/libssl.so.0 \
  33.                       lib/libQtGui.so.4 \
  34.                       lib/libQtSvg.so.4 \
  35.                       lib/libQtNetwork.so.4  \
  36.                       lib/libQtXml.so.4 \
  37.                       lib/libQtCore.so.4 \
  38.                       lib/libQtSql.so.4 \
  39.                       lib/libQtWebKit.so.4 \
  40.                       lib/libQtXmlPatterns.so.4 \
  41.                       $pkgdir/opt/mendeleydesktop/lib
  42.  
  43.         # install actual executables with pointer to sqlite plugin
  44.         cat > $pkgdir/opt/mendeleydesktop/bin/qt.conf <<__EOF__
  45. [Paths]
  46. plugins=/opt/mendeleydesktop/plugins
  47. __EOF__
  48.         install -m755 \
  49.            lib/mendeleydesktop/libexec/{Updater,mendeleydesktop.$_arch} \
  50.            $pkgdir/opt/mendeleydesktop/bin
  51.         tar -cf - -C lib/mendeleydesktop/plugins . | \
  52.           tar -C $pkgdir/opt/mendeleydesktop/plugins/ -xpf -
  53.         ln -s /usr/share/mendeleydesktop/ $pkgdir/opt/mendeleydesktop/bin/share
  54.  
  55.         # install launcher and fix up path
  56.         sed -i "s~\"\$LOCAL_LIB_PATH\"/mendeleydesktop/libexec/~LD_LIBRARY_PATH=/opt/mendeleydesktop/lib:\$LD_LIBRARY_PATH /opt/mendeleydesktop/bin/~" \
  57.                bin/mendeleydesktop
  58.         install -D -m755 bin/mendeleydesktop \
  59.                          $pkgdir/usr/bin/mendeleydesktop
  60.  
  61.         # install license and resources
  62.         install -D -m644 LICENSE \
  63.                          $pkgdir/usr/share/licenses/$pkgname/LICENSE
  64.         rm -f LICENSE
  65.  
  66.         find share/ | cpio -p -dum $pkgdir/usr
  67.         install -Dm644 share/icons/hicolor/48x48/apps/mendeleydesktop.png \
  68.                        $pkgdir/usr/share/pixmaps/mendeleydesktop.png
  69.         rm -rf share/{applications,icons}
  70.  
  71. }

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right