Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c9ab6b071c83b33791735644cd430cf81ca0302a
commit c9ab6b071c83b33791735644cd430cf81ca0302a
Author: Melko lorddarthfe...@gmail.com
Date: Sun Oct 24 20:06:10 2010 +0200
kfilebox-0.4.5-1-i686
* New Package
diff --git a/source/kde-extra/kfilebox/FrugalBuild
b/source/kde-extra/kfilebox/FrugalBuild
new file mode 100644
index 000..a3fa1ce
--- /dev/null
+++ b/source/kde-extra/kfilebox/FrugalBuild
@@ -0,0 +1,32 @@
+# Compiling time: 0.02 SBU
+# Contributor: Melko lorddarthfe...@gmail.com
+# No Maintainer yet
+
+pkgname=kfilebox
+pkgver=0.4.5
+pkgrel=1
+pkgdesc=KDE4 Dropbox client
+license=('GPL')
+depends=('libkdecore=4.4' 'libqtsql')
+_F_gnome_iconcache=y
+_F_sourceforge_dirname=kdropbox
+Finclude sourceforge gnome-scriptlet
+archs=('i686' 'x86_64')
+groups=('kde-extra')
+source=($source kfilebox.pro.patch)
+sha1sums=('459eac9f8cd3525a16bbd5505f3aac30d14d1e0d' \
+ '01e162f242129f582c0b0f2df46b33c73ecb8906')
+
+build() {
+Fcd
+Fpatchall
+qmake || Fdie
+Fmake
+make INSTALL_ROOT=${Fdestdir} install || Fdie
+
+Fexe ${pkgname}-${pkgver}/bin/${pkgname} /usr/bin/${pkgname}
+for i in ar br cs de es fr gl it lt nl pl pt ru si tr zh; do
+Ffile ${pkgname}-${pkgver}/locale/${i}/${pkgname}.mo
/usr/share/locale/${i}/LC_MESSAGES/${pkgname}.mo
+done
+Fbuild_gnome_scriptlet
+}
diff --git a/source/kde-extra/kfilebox/kfilebox.pro.patch
b/source/kde-extra/kfilebox/kfilebox.pro.patch
new file mode 100644
index 000..079a583
--- /dev/null
+++ b/source/kde-extra/kfilebox/kfilebox.pro.patch
@@ -0,0 +1,200 @@
+--- src/kfilebox-0.4.5/kfilebox.pro2010-09-24 14:11:46.0 +0200
kfilebox.pro 2010-09-27 17:46:02.0 +0200
+@@ -37,10 +37,44 @@
+ 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
+
+@@ -108,128 +142,60 @@
+ iconox128.files += img/hicolor/128x128/apps/kfilebox.png
+ INSTALLS += iconox128
+
+-transinstallar.extra = find . -name \*.cpp\ -o -name \*.h\ | xargs
xgettext -C --kde --keyword=tr --keyword=translate:2 -o
$${OUT_PWD}/messages.po; \
+-msgmerge locale/ar/kfilebox.po messages.po tmp.po; mv -f tmp.po
locale/ar/kfilebox.mo; \
+-msgfmt -o $$DATADIR/locale/ar/LC_MESSAGES/kfilebox.mo
locale/ar/kfilebox.po
+ transinstallar.path = $$DATADIR/locale/ar/LC_MESSAGES
+-transinstallar.files = locale/ar/kfilebox.mo
++transinstallar.files = locale/ar/kdropbox.mo
+ INSTALLS += transinstallar
+-transinstallbr.extra = msgmerge locale/br/kfilebox.po messages.po tmp.po;
mv -f tmp.po locale/br/kfilebox.po; \
+-msgfmt -o locale/br/kfilebox.mo locale/br/kfilebox.po; \
+-cp -f locale/br/kfilebox.mo $$DATADIR/locale/br/LC_MESSAGES
+ transinstallbr.path = $$DATADIR/locale/br/LC_MESSAGES
+-transinstallbr.files = locale/br/kfilebox.mo
++transinstallbr.files = locale/br/kdropbox.mo
+ INSTALLS += transinstallbr
+-transinstallde.extra = msgmerge locale/de/kfilebox.po messages.po tmp.po;
mv -f tmp.po locale/de/kfilebox.po; \
+-msgfmt -o locale/de/kfilebox.mo locale/de/kfilebox.po; \
+-cp -f locale/de/kfilebox.mo $$DATADIR/locale/de/LC_MESSAGES
+ transinstallde.path = $$DATADIR/locale/de_DE/LC_MESSAGES
+-transinstallde.files = locale/de/kfilebox.mo
++transinstallde.files = locale/de/kdropbox.mo
+ INSTALLS += transinstallde
+-
+-transinstallen.extra = msgmerge locale/en/kfilebox.po messages.po tmp.po;
mv -f tmp.po locale/en/kfilebox.po; \
+-msgfmt -o locale/en/kfilebox.mo locale/en/kfilebox.po; \
+-cp -f locale/en/kfilebox.mo $$DATADIR/locale/en/LC_MESSAGES
+-transinstallen.path = $$DATADIR/locale/en/LC_MESSAGES
+-transinstallen.files = locale/en/kfilebox.mo
+-INSTALLS += transinstallen
+-
+-transinstallen_gb.extra = cp -f locale/en/kfilebox.mo
$$DATADIR/locale/en_GB/LC_MESSAGES
++#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