2016-08-18 16:56:51 +08:00
|
|
|
# Contributions from AUR: https://aur.archlinux.org/packages/kde-servicemenus-dropbox/
|
2011-03-22 20:05:38 +08:00
|
|
|
|
2014-05-23 08:41:26 +08:00
|
|
|
pkgname=dropbox-servicemenu
|
2012-02-27 01:03:03 +08:00
|
|
|
pkgver=0.16.1
|
2016-12-21 06:22:19 +08:00
|
|
|
pkgrel=7
|
2016-08-18 16:56:51 +08:00
|
|
|
pkgdesc="A servicemenu for KDE4 (patched for Frameworks 5) which allows easy access to most of Dropbox features."
|
2011-03-22 20:05:38 +08:00
|
|
|
url="http://kde-apps.org/content/show.php?content=124416"
|
|
|
|
license=('GPL')
|
2014-05-23 08:41:26 +08:00
|
|
|
arch=('x86_64')
|
2016-12-21 06:22:19 +08:00
|
|
|
depends=('dropbox' 'python2' 'kdialog' 'python2-m2crypto' 'xdg-utils' 'sharutils' 'recode' 'perl' 'sqlite3')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('network')
|
2016-08-18 16:56:51 +08:00
|
|
|
source=("https://dl.opendesktop.org/api/files/download/id/1466690475/124416-DropboxServiceMenu-${pkgver}.tar.gz"
|
|
|
|
"kde5.patch")
|
2015-02-28 21:17:01 +08:00
|
|
|
md5sums=('3c0186649311611abfbb8ac016a67791'
|
2016-08-18 16:56:51 +08:00
|
|
|
'a6945d04da03a52d88d8117f785035a3')
|
2015-02-28 21:17:01 +08:00
|
|
|
|
|
|
|
prepare() {
|
2016-08-18 16:56:51 +08:00
|
|
|
cd "$srcdir"
|
|
|
|
|
|
|
|
# Apply the patch given by "swyear" in the comments section of the kde-look.org page
|
|
|
|
patch -s -p0 < kde5.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/DropboxServiceMenu-${pkgver}/"
|
|
|
|
sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' dropbox-scripts/dropbox.py
|
|
|
|
sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' dropbox-scripts/dropbox-notify.py
|
|
|
|
sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/' dropbox-scripts/pyndexer.py
|
|
|
|
|
|
|
|
_SCRIPT_PATH="/usr/"
|
|
|
|
_PATTERN="\$HOME/.local"
|
|
|
|
|
|
|
|
sed -i "s,${_PATTERN},${_SCRIPT_PATH}," dropbox-scripts/dropbox_menu.sh
|
|
|
|
sed -i "s,${_PATTERN},${_SCRIPT_PATH}," dropbox_all.desktop
|
|
|
|
sed -i "s,${_PATTERN},${_SCRIPT_PATH}," dropbox_files.desktop
|
|
|
|
sed -i "s,${_PATTERN},${_SCRIPT_PATH}," dropbox_directories.desktop
|
|
|
|
|
2015-02-28 21:17:01 +08:00
|
|
|
}
|
2014-05-23 08:41:26 +08:00
|
|
|
|
2012-02-27 01:03:03 +08:00
|
|
|
package() {
|
2016-08-18 16:56:51 +08:00
|
|
|
cd "$srcdir/DropboxServiceMenu-${pkgver}/"
|
2016-04-24 01:57:36 +08:00
|
|
|
|
2016-08-18 16:56:51 +08:00
|
|
|
mkdir -p "${pkgdir}/usr/share/kservices5/ServiceMenus/dropbox-scripts"
|
|
|
|
install -m 644 dropbox_all.desktop "${pkgdir}/usr/share/kservices5/ServiceMenus/"
|
|
|
|
install -m 644 dropbox_files.desktop "${pkgdir}/usr/share/kservices5/ServiceMenus/"
|
|
|
|
install -m 644 dropbox_directories.desktop "${pkgdir}/usr/share/kservices5/ServiceMenus/"
|
|
|
|
install -m 755 dropbox-scripts/* "${pkgdir}/usr/share/kservices5/ServiceMenus/dropbox-scripts/"
|
|
|
|
|
|
|
|
}
|