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

dropbox-servicemenu PKGBUILD

By: a guest on Feb 2nd, 2012  |  syntax: Bash  |  size: 1.83 KB  |  views: 119  |  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. # Maintainer: (locke87) Felix Mauch
  2. # based on http://kde-apps.org/content/show.php?content=124416
  3.  
  4. pkgname=dropbox-servicemenu
  5. pkgver=0.16.1
  6. pkgrel=1
  7. pkgdesc="A servicemenu for KDE4 which allows easy access to most of Dropbox features. It uses Dropbox CLI to generate public urls, and pyndexer to allow sharing directories in public directory."
  8. url="http://kde-apps.org/content/show.php?content=124416"
  9. license=('GPL')
  10. arch=(any)
  11. depends=('dropbox' 'python2' 'kdebase-kdialog' 'python-m2crypto' 'sharutils' 'recode' 'perl' 'dbus-python')
  12. source=(http://kde-look.org/CONTENT/content-files/124416-DropboxServiceMenu-${pkgver}.tar.gz)
  13. md5sums=('3c0186649311611abfbb8ac016a67791')
  14.  
  15.  
  16. build() {
  17.         cd "$srcdir/DropboxServiceMenu-${pkgver}/"
  18.  
  19.   sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' dropbox-scripts/dropbox.py
  20.   sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' dropbox-scripts/dropbox-notify.py
  21.   sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/' dropbox-scripts/pyndexer.py
  22.   sed -i 's/python/python2/' dropbox-scripts/dropbox_menu.sh
  23.   sed -i 's/localprefix/prefix/' dropbox_all.desktop
  24.   sed -i 's/localprefix/prefix/' dropbox_files.desktop
  25.   sed -i 's/localprefix/prefix/' dropbox_directories.desktop
  26.   sed -i 's/localprefix`/prefix`\//' dropbox-scripts/dropbox_menu.sh
  27.         mkdir -p ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/dropbox-scripts/"
  28.         install -m 755 dropbox-scripts/* ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/dropbox-scripts/"
  29.         install -m 644 dropbox_all.desktop ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
  30.         install -m 644 dropbox_files.desktop ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
  31.         install -m 644 dropbox_directories.desktop ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
  32. }
clone this paste RAW Paste Data