Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 13th, 2011  |  syntax: None  |  size: 1.45 KB  |  views: 212  |  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.7
  8. pkgrel=1
  9. pkgdesc="Dropbox for Linux - Nautilus extension and Command Line Interface "
  10. arch=('i686 x86_64')
  11. url="http://www.dropbox.com"
  12. license=('custom')
  13. makedepends=('docutils')
  14. depends=('gtk2' 'libnotify' 'nautilus' 'pygtk' 'python2')
  15. install=nautilus-dropbox.install
  16. source=("https://www.dropbox.com/download?dl=packages/nautilus-dropbox-${pkgver}
  17. .tar.bz2")
  18. md5sums=('089a2fb168ba62176d6e35c41b7d6831')
  19. build() {
  20.   cd "$srcdir/nautilus-dropbox-${pkgver}/"
  21.  
  22.   sed -i "s/| python/|python2/" configure.in
  23.   sed -i "s/\[python\]/[python2]/" configure.in
  24.  
  25.   sed -i "s/| python/|python2/" configure
  26.   sed -i "s/set dummy python/set dummy python2/" configure
  27.   sed -i 's|$(top_builddir)/libtool|libtool|' configure
  28.  
  29.   sed -i 's|$(top_builddir)/libtool|libtool|' aclocal.m4
  30.   sed -i "s|/usr/bin/python|/usr/bin/python2|" dropbox.in
  31.   sed -i "s|env python|env python2|" rst2man.py
  32.   sed -i 's|python |python2 |' Makefile.am
  33.   sed -i 's|python |python2 |' Makefile.in
  34.  
  35.   ./configure --prefix=/usr --sysconfdir=/etc || return 1
  36.   make || return 1
  37.   make install DESTDIR=$pkgdir || return 1
  38.  # rm $pkgdir/usr/bin/dropbox
  39.  # rm $pkgdir/usr/share/applications/dropbox.desktop
  40.  # rmdir $pkgdir/usr/share/applications
  41. }