mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
kfilebox back in the repo's, gtkfree & dropbox-servicemenu
This commit is contained in:
parent
77d5fdc171
commit
c4e129ff16
36
dropbox-servicemenu-gtkfree/PKGBUILD
Normal file
36
dropbox-servicemenu-gtkfree/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
# contributor Neo Kolokotronis <tetris4@gmail.com>
|
||||
|
||||
pkgname=dropbox-servicemenu-gtkfree
|
||||
pkgver=0.15.3
|
||||
pkgrel=1
|
||||
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=('i686' 'x86_64')
|
||||
depends=('kfilebox-gtkfree' 'python' 'kdebase' 'python-m2crypto' 'libdmtx')
|
||||
source=(http://kde-look.org/CONTENT/content-files/124416-DropboxServiceMenu-${pkgver}.tar.gz)
|
||||
md5sums=('6da9275821ac95c888ee76d90e0a9de5')
|
||||
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
|
||||
sed -i 's/python/python2/' dropbox-scripts/dropbox_menu.sh
|
||||
|
||||
mkdir -p ${pkgdir}/"`kde4-config --prefix`/share/kde4/services/ServiceMenus/"
|
||||
mkdir -p ${pkgdir}/"/usr/bin/"
|
||||
install -m 755 dropbox-scripts/dropbox.py ${pkgdir}/"/usr/bin/"
|
||||
install -m 755 dropbox-scripts/dropbox-notify.py ${pkgdir}/"/usr/bin/"
|
||||
install -m 755 dropbox-scripts/dropbox_menu.sh ${pkgdir}/"/usr/bin/"
|
||||
install -m 755 dropbox-scripts/dropbox_menu_translations.sh ${pkgdir}/"/usr/bin/"
|
||||
install -m 755 dropbox-scripts/pyndexer.py ${pkgdir}/"/usr/bin/"
|
||||
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/"
|
||||
}
|
49
kfilebox-gtkfree/PKGBUILD
Normal file
49
kfilebox-gtkfree/PKGBUILD
Normal file
@ -0,0 +1,49 @@
|
||||
#
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
# contributor Neo Kolokotronis <tetris4@gmail.com>
|
||||
|
||||
pkgname=kfilebox-gtkfree
|
||||
pkgver=0.4.7
|
||||
pkgrel=1
|
||||
pkgdesc="KDE4 Dropbox client (with own daemon) - Stripped from gtk dependencies"
|
||||
arch=(i686 x86_64)
|
||||
url="http://kdropbox.deuteros.es"
|
||||
license=('GPL')
|
||||
depends=('kdebase-workspace')
|
||||
provides=(dropbox)
|
||||
replaces=(kdropbox)
|
||||
source=(http://downloads.sourceforge.net/project/kdropbox/kfilebox-${pkgver}/Source/kfilebox-${pkgver}.tar.gz
|
||||
kfilebox.pro)
|
||||
install=kfilebox.install
|
||||
md5sums=('7a85e725f49f58a0289504e1a021297e'
|
||||
'69ddadaccfb4ac5a7d062ee3251ea42b')
|
||||
|
||||
build() {
|
||||
cp -r kfilebox.pro ${srcdir}/kfilebox-${pkgver}/kfilebox.pro
|
||||
cd "${srcdir}/kfilebox-${pkgver}"
|
||||
qmake
|
||||
make || return 1
|
||||
make INSTALL_ROOT=${pkgdir} install || return 1
|
||||
#ugly hack to install binnary
|
||||
install -m 755 -p -D $srcdir/kfilebox-$pkgver/bin/kfilebox $pkgdir/usr/bin/kfilebox
|
||||
#(again an) ugly hack to install translations
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/ar/kfilebox.mo ${pkgdir}/usr/share/locale/ar/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/br/kfilebox.mo ${pkgdir}/usr/share/locale/br/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/de/kfilebox.mo ${pkgdir}/usr/share/locale/de/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/es/kfilebox.mo ${pkgdir}/usr/share/locale/es/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/fr/kfilebox.mo ${pkgdir}/usr/share/locale/fr/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/gl/kfilebox.mo ${pkgdir}/usr/share/locale/gl/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/tr/kfilebox.mo ${pkgdir}/usr/share/locale/tr/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/ru/kfilebox.mo ${pkgdir}/usr/share/locale/ru/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/pl/kfilebox.mo ${pkgdir}/usr/share/locale/pl/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/cs/kfilebox.mo ${pkgdir}/usr/share/locale/cs/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/it/kfilebox.mo ${pkgdir}/usr/share/locale/it/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/lt/kfilebox.mo ${pkgdir}/usr/share/locale/lt/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/nl/kfilebox.mo ${pkgdir}/usr/share/locale/nl/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/pt/kfilebox.mo ${pkgdir}/usr/share/locale/pt/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/si/kfilebox.mo ${pkgdir}/usr/share/locale/si/LC_MESSAGES/kfilebox.mo
|
||||
install -m 644 -p -D ${srcdir}/kfilebox-${pkgver}/locale/zh/kfilebox.mo ${pkgdir}/usr/share/locale/zh/LC_MESSAGES/kfilebox.mo
|
||||
}
|
12
kfilebox-gtkfree/kfilebox.install
Normal file
12
kfilebox-gtkfree/kfilebox.install
Normal file
@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
kbuildsycoca4
|
||||
echo "To link this PC to your Dropbox account, make sure you run kfilebox in the CLI the first time and follow the link generated"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
201
kfilebox-gtkfree/kfilebox.pro
Normal file
201
kfilebox-gtkfree/kfilebox.pro
Normal file
@ -0,0 +1,201 @@
|
||||
# -------------------------------------------------
|
||||
# Project created by QtCreator 2010-01-28T13:45:03
|
||||
# -------------------------------------------------
|
||||
QT += sql \
|
||||
network \
|
||||
dbus
|
||||
LIBS += -lkdeui
|
||||
TARGET = bin/kfilebox
|
||||
TEMPLATE = app
|
||||
SOURCES += main.cpp \
|
||||
mainwindow.cpp \
|
||||
model/Configuration.cpp \
|
||||
util/SystemCall.cpp \
|
||||
model/FileJournal.cpp \
|
||||
core/DropboxClient.cpp \
|
||||
core/DaemonConnection.cpp \
|
||||
util/Downloader.cpp \
|
||||
installer/Daemoninstaller.cpp \
|
||||
installer/installerform.cpp \
|
||||
core/trayicon.cpp \
|
||||
core/notification.cpp \
|
||||
core/filebrowser.cpp \
|
||||
core/dolphin.cpp \
|
||||
core/konqueror.cpp
|
||||
HEADERS += mainwindow.h \
|
||||
model/Configuration.h \
|
||||
util/SystemCall.h \
|
||||
model/FileJournal.h \
|
||||
core/DropboxClient.h \
|
||||
core/DaemonConnection.h \
|
||||
util/Downloader.h \
|
||||
installer/Daemoninstaller.h \
|
||||
installer/installerform.h \
|
||||
core/trayicon.h \
|
||||
core/notification.h \
|
||||
core/filebrowser.h \
|
||||
core/dolphin.h \
|
||||
core/konqueror.h
|
||||
RESOURCES += DropboxIcons.qrc
|
||||
TRANSLIST = ar \
|
||||
br \
|
||||
de \
|
||||
# en \
|
||||
es \
|
||||
fr \
|
||||
gl \
|
||||
tr \
|
||||
ru \
|
||||
pl \
|
||||
cs \
|
||||
it \
|
||||
lt \
|
||||
nl \
|
||||
pt \
|
||||
si \
|
||||
zh
|
||||
for(language, TRANSLIST):TRANSLATIONS += locale/$${language}/kfilebox.po
|
||||
FORMS += mainwindow.ui \
|
||||
installer/installerform.ui
|
||||
!isEmpty(TRANSLATIONS) {
|
||||
isEmpty(QMAKE_LRELEASE) {
|
||||
win32:QMAKE_LRELEASE = msgfmt.exe
|
||||
else:QMAKE_LRELEASE = msgfmt
|
||||
}
|
||||
TSQM.name = msgfmt \
|
||||
${QMAKE_FILE_IN}
|
||||
TSQM.input = TRANSLATIONS
|
||||
TSQM.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.mo
|
||||
TSQM.commands = $$QMAKE_LRELEASE \
|
||||
-o \
|
||||
$$TSQM.output \
|
||||
${QMAKE_FILE_IN}
|
||||
TSQM.CONFIG = no_link
|
||||
QMAKE_EXTRA_COMPILERS += TSQM
|
||||
PRE_TARGETDEPS += compiler_TSQM_make_all
|
||||
}
|
||||
else:message(No translation files in project)
|
||||
|
||||
DATADIR=/usr/share
|
||||
|
||||
QMFILES = bin/kfilebox
|
||||
target.path = /usr/bin/
|
||||
target.files = $$QMFILES
|
||||
INSTALLS += target
|
||||
INSTALL_DESKTOP = kfilebox.desktop
|
||||
insdesktop.path = $$DATADIR/applications/
|
||||
insdesktop.files = $$INSTALL_DESKTOP
|
||||
INSTALLS += insdesktop
|
||||
INSTALL_AUTOSTART = kfilebox.desktop
|
||||
insauto.path = $$DATADIR/autostart
|
||||
insauto.files = $$INSTALL_AUTOSTART
|
||||
INSTALLS += insauto
|
||||
INSTALL_NOTIFY = kfilebox.notifyrc
|
||||
insnotify.path = $$DATADIR/kde4/apps/kfilebox
|
||||
insnotify.files = $$INSTALL_NOTIFY
|
||||
INSTALLS += insnotify
|
||||
|
||||
iconAPP.path = $$DATADIR/kfilebox
|
||||
iconAPP.files += img/hicolor/48x48/apps/kfilebox.png
|
||||
INSTALLS += iconAPP
|
||||
|
||||
icon16.path = $$DATADIR/icons/hicolor/16x16/apps
|
||||
icon16.files += img/hicolor/16x16/apps/kfilebox.png
|
||||
INSTALLS += icon16
|
||||
icon22.path = $$DATADIR/icons/hicolor/22x22/apps
|
||||
icon22.files += img/hicolor/22x22/apps/kfilebox.png
|
||||
INSTALLS += icon22
|
||||
icon24.path = $$DATADIR/icons/hicolor/24x24/apps
|
||||
icon24.files += img/hicolor/24x24/apps/kfilebox.png
|
||||
INSTALLS += icon24
|
||||
icon32.path = $$DATADIR/icons/hicolor/32x32/apps
|
||||
icon32.files += img/hicolor/32x32/apps/kfilebox.png
|
||||
INSTALLS += icon32
|
||||
icon48.path = $$DATADIR/icons/hicolor/48x48/apps
|
||||
icon48.files += img/hicolor/48x48/apps/kfilebox.png
|
||||
INSTALLS += icon48
|
||||
icon64.path = $$DATADIR/icons/hicolor/64x64/apps
|
||||
icon64.files += img/hicolor/64x64/apps/kfilebox.png
|
||||
INSTALLS += icon64
|
||||
icon128.path = $$DATADIR/icons/hicolor/128x128/apps
|
||||
icon128.files += img/hicolor/128x128/apps/kfilebox.png
|
||||
INSTALLS += icon128
|
||||
iconox16.path = $$DATADIR/icons/oxygen/16x16/apps
|
||||
iconox16.files += img/hicolor/16x16/apps/kfilebox.png
|
||||
INSTALLS += iconox16
|
||||
iconox22.path = $$DATADIR/icons/oxygen/22x22/apps
|
||||
iconox22.files += img/hicolor/22x22/apps/kfilebox.png
|
||||
INSTALLS += iconox22
|
||||
iconox24.path = $$DATADIR/icons/oxygen/24x24/apps
|
||||
iconox24.files += img/hicolor/24x24/apps/kfilebox.png
|
||||
INSTALLS += iconox24
|
||||
iconox32.path = $$DATADIR/icons/oxygen/32x32/apps
|
||||
iconox32.files += img/hicolor/32x32/apps/kfilebox.png
|
||||
INSTALLS += iconox32
|
||||
iconox48.path = $$DATADIR/icons/oxygen/48x48/apps
|
||||
iconox48.files += img/hicolor/48x48/apps/kfilebox.png
|
||||
INSTALLS += iconox48
|
||||
iconox64.path = $$DATADIR/icons/oxygen/64x64/apps
|
||||
iconox64.files += img/hicolor/64x64/apps/kfilebox.png
|
||||
INSTALLS += iconox64
|
||||
iconox128.path = $$DATADIR/icons/oxygen/128x128/apps
|
||||
iconox128.files += img/hicolor/128x128/apps/kfilebox.png
|
||||
INSTALLS += iconox128
|
||||
|
||||
transinstallar.path = $$DATADIR/locale/ar/LC_MESSAGES
|
||||
transinstallar.files = locale/ar/kdropbox.mo
|
||||
INSTALLS += transinstallar
|
||||
transinstallbr.path = $$DATADIR/locale/br/LC_MESSAGES
|
||||
transinstallbr.files = locale/br/kdropbox.mo
|
||||
INSTALLS += transinstallbr
|
||||
transinstallde.path = $$DATADIR/locale/de_DE/LC_MESSAGES
|
||||
transinstallde.files = locale/de/kdropbox.mo
|
||||
INSTALLS += transinstallde
|
||||
#transinstallen.path = $$DATADIR/locale/en/LC_MESSAGES
|
||||
#transinstallen.files = locale/en/kdropbox.mo
|
||||
#INSTALLS += transinstallen
|
||||
transinstallen_gb.path = $$DATADIR/locale/en_GB/LC_MESSAGES
|
||||
transinstallen_gb.files = locale/en/kdropbox.mo
|
||||
INSTALLS += transinstallen_gb
|
||||
transinstalles.path = $$DATADIR/locale/es/LC_MESSAGES
|
||||
transinstalles.files = locale/es/kdropbox.mo
|
||||
INSTALLS += transinstalles
|
||||
transinstallfr.path = $$DATADIR/locale/fr/LC_MESSAGES
|
||||
transinstallfr.files = locale/fr/kdropbox.mo
|
||||
INSTALLS += transinstallfr
|
||||
transinstallgl.path = $$DATADIR/locale/gl/LC_MESSAGES
|
||||
transinstallgl.files = locale/gl/kdropbox.mo
|
||||
INSTALLS += transinstallgl
|
||||
transinstalltr.path = $$DATADIR/locale/tr/LC_MESSAGES
|
||||
transinstalltr.files = locale/tr/kdropbox.mo
|
||||
INSTALLS += transinstalltr
|
||||
transinstallru.path = $$DATADIR/locale/ru/LC_MESSAGES
|
||||
transinstallru.files = locale/ru/kdropbox.mo
|
||||
INSTALLS += transinstallru
|
||||
transinstallcs.path = $$DATADIR/locale/cs/LC_MESSAGES
|
||||
transinstallcs.files = locale/cs/kdropbox.mo
|
||||
INSTALLS += transinstallcs
|
||||
transinstallpl.path = $$DATADIR/locale/pl/LC_MESSAGES
|
||||
transinstallpl.files = locale/pl/kdropbox.mo
|
||||
INSTALLS += transinstallpl
|
||||
transinstallit.path = $$DATADIR/locale/it/LC_MESSAGES
|
||||
transinstallit.files = locale/it/kdropbox.mo
|
||||
INSTALLS += transinstallit
|
||||
transinstalllt.path = $$DATADIR/locale/lt/LC_MESSAGES
|
||||
transinstalllt.files = locale/lt/kdropbox.mo
|
||||
INSTALLS += transinstalllt
|
||||
transinstallnl.path = $$DATADIR/locale/nl/LC_MESSAGES
|
||||
transinstallnl.files = locale/nl/kdropbox.mo
|
||||
INSTALLS += transinstallnl
|
||||
transinstallpt.path = $$DATADIR/locale/pt/LC_MESSAGES
|
||||
transinstallpt.files = locale/pt/kdropbox.mo
|
||||
INSTALLS += transinstallpt
|
||||
transinstallsi.path = $$DATADIR/locale/si/LC_MESSAGES
|
||||
transinstallsi.files = locale/si/kdropbox.mo
|
||||
INSTALLS += transinstallsi
|
||||
transinstallzh.path = $$DATADIR/locale/zh/LC_MESSAGES
|
||||
transinstallzh.files = locale/zh/kdropbox.mo
|
||||
INSTALLS += transinstallzh
|
||||
transinstallzh_cn.path = $$DATADIR/locale/zh_cn/LC_MESSAGES
|
||||
transinstallzh_cn.files = locale/zh/kdropbox.mo
|
||||
INSTALLS += transinstallzh_cn
|
Loading…
Reference in New Issue
Block a user