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

nautilus-dropbox

By: Unknown47 on Jul 3rd, 2011  |  syntax: None  |  size: 1.48 KB  |  views: 393  |  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: cmorlok <christianmorlok@web.de>
  2. # Contributor: fazibear <fazibear@gmail.com>
  3. # Contributor: neuromante <lorenzo.nizzi.grifi@gmail.com>
  4. # Contributor: Gordin <9ordin @t gmail.com>
  5.  
  6. pkgname=nautilus-dropbox
  7. pkgver=0.6.8
  8. pkgrel=1
  9. pkgdesc="Dropbox for Linux - Nautilus extension and Command Line Interface "
  10. arch=('i686' 'x86_64')
  11. url="http://forums.dropbox.com/topic.php?id=21111"
  12. license=('custom')
  13. makedepends=('docutils')
  14. depends=('gtk2' 'libnotify' 'nautilus' 'dropbox' 'pygtk' 'python2')
  15. install=nautilus-dropbox.install
  16. source=("https://www.dropbox.com/download?dl=packages/nautilus-dropbox-${pkgver}.tar.bz2")
  17. md5sums=('94d68f74ed2ef0c1f998aeb45af03caf')
  18. build() {
  19.   cd "$srcdir/nautilus-dropbox-${pkgver}/"
  20.  
  21.   sed -i "s/| python/|python2/" configure.in
  22.   sed -i "s/\[python\]/[python2]/" configure.in
  23.  
  24.   sed -i "s/| python/|python2/" configure
  25.   sed -i "s/set dummy python/set dummy python2/" configure
  26.   sed -i 's|$(top_builddir)/libtool|libtool|' configure
  27.  
  28.   sed -i 's|$(top_builddir)/libtool|libtool|' aclocal.m4
  29.   sed -i "s|/usr/bin/python|/usr/bin/python2|" dropbox.in
  30.   sed -i "s|env python|env python2|" rst2man.py
  31.   sed -i 's|python |python2 |' Makefile.am
  32.   sed -i 's|python |python2 |' Makefile.in
  33.  
  34.   ./configure --prefix=/usr --sysconfdir=/etc || return 1
  35.   make || return 1
  36.   make install DESTDIR=$pkgdir || return 1
  37.   rm $pkgdir/usr/bin/dropbox
  38.   rm $pkgdir/usr/share/applications/dropbox.desktop
  39.   rmdir $pkgdir/usr/share/applications
  40. }
clone this paste RAW Paste Data