SHARE
TWEET

Untitled

a guest May 11th, 2010 153 Never
  1. pkgname=dropbox-servicemenu
  2. pkgver=0.2
  3. pkgrel=1
  4. pkgdesc="Dropbox ServiceMenu is a servicemenu which allows easy
  5. access to most of Dropbox features."
  6. arch=('i686' 'x86_64')
  7. url="http://kde-apps.org/content/show.php/Dropbox+ServiceMenu?content=124416"
  8. license=('GPL')
  9. depends=('dropbox')
  10. source=("http://kde-apps.org/CONTENT/content-files/124416-Dropbox ServiceMenu-${pkgver}.tar.gz")
  11. md5sums=('054e2389722e2759d66d23c223f6831f')
  12.  
  13. build()
  14. {
  15. #Make the servicemenu work when installed system-wide
  16.   sed 's/--localprefix/--prefix/' -i "${srcdir}/Dropbox ServiceMenu/dropbox.desktop" || return 1
  17.   sed 's/--localprefix/--prefix/' -i "${srcdir}/Dropbox ServiceMenu/dropbox-scripts/dropbox_copy.sh" || return 1
  18.   sed 's/--localprefix/--prefix/' -i "${srcdir}/Dropbox ServiceMenu/dropbox-scripts/dropbox_move.sh" || return 1
  19.   sed 's/--localprefix/--prefix/' -i "${srcdir}/Dropbox ServiceMenu/dropbox-scripts/dropbox_url.sh" || return 1
  20.  
  21.   mkdir -p "${pkgdir}/usr/share/kde4/services/ServiceMenus/" || return 1
  22.   cp -r "$srcdir/Dropbox ServiceMenu/dropbox-index" "${pkgdir}/usr/share/kde4/services/ServiceMenus/" || return 1
  23.   cp -r "$srcdir/Dropbox ServiceMenu/dropbox-scripts" "${pkgdir}/usr/share/kde4/services/ServiceMenus/" || return 1
  24.   cp -r "$srcdir/Dropbox ServiceMenu/dropbox.desktop" "${pkgdir}/usr/share/kde4/services/ServiceMenus/" || return 1
  25. }
RAW Paste Data
Top