SHARE
TWEET

dropbox-servicemenu PKGBUILD

a guest Feb 2nd, 2012 124 Never
  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. }
RAW Paste Data
Top