desktop/dropbox-servicemenu/PKGBUILD
2015-02-28 13:17:01 +00:00

42 lines
1.9 KiB
Bash

# maintainer: Manuel 'UtG' <utg[dot]chakra.linux[at]gmail[dot]com>
# contributor: (locke87) Felix Mauch
pkgname=dropbox-servicemenu
pkgver=0.16.1
pkgrel=3
pkgdesc="A servicemenu for KDE4 which allows easy access to most of Dropbox features - Stripped from gtk dependencies. It uses Dropbox CLI to generate public urls, and pyndexer to allow sharing directories in public directory."
url="http://kde-apps.org/content/show.php?content=124416"
license=('GPL')
arch=('x86_64')
conflicts=('dropbox-servicemenu-gtkfree')
replaces=('dropbox-servicemenu-gtkfree')
depends=('dropbox' 'python' 'kde-baseapps' 'python-m2crypto' 'xdg-utils' 'sharutils' 'recode' 'perl')
categories=('network')
source=("http://kde-look.org/CONTENT/content-files/124416-DropboxServiceMenu-${pkgver}.tar.gz"
"folder-path-fix.diff")
md5sums=('3c0186649311611abfbb8ac016a67791'
'd5edf423abdf5a60ed1aabb25fac6c54')
prepare() {
cd DropboxServiceMenu-${pkgver}/
patch -p1 -i $srcdir/folder-path-fix.diff
}
package() {
cd "$srcdir/DropboxServiceMenu-${pkgver}/"
sed -i 's/localprefix/prefix/' dropbox_all.desktop
sed -i 's/localprefix/prefix/' dropbox_files.desktop
sed -i 's/localprefix/prefix/' dropbox_directories.desktop
sed -i 's/localprefix`/prefix`\//' dropbox-scripts/dropbox_menu.sh
mkdir -p ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
mkdir -p ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/dropbox-scripts/"
mkdir -p ${pkgdir}/"/usr/bin/"
install -m 755 dropbox-scripts/* ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/dropbox-scripts/"
install -m 644 dropbox_all.desktop ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
install -m 644 dropbox_files.desktop ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
install -m 644 dropbox_directories.desktop ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
}