[arch-commits] Commit in kate/kde-unstable (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Apr 7 23:02:20 UTC 2017
Date: Friday, April 7, 2017 @ 23:02:20
Author: arojas
Revision: 292498
Fix translations
Modified:
kate/kde-unstable/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-04-07 22:52:53 UTC (rev 292497)
+++ PKGBUILD 2017-04-07 23:02:20 UTC (rev 292498)
@@ -7,7 +7,7 @@
pkgname=('kwrite'
'kate')
pkgver=17.03.90
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'plasma-framework' 'knewstuff' 'ktexteditor'
@@ -16,6 +16,7 @@
sha256sums=('44c78b31b1ae36ef38a362108882a28a24476510b2bd0746fc3095ecdc68914e'
'SKIP')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid at kde.org>
+options=(!emptydirs)
prepare() {
mkdir -p build
@@ -41,11 +42,15 @@
conflicts=('kdebase-kwrite')
provides=('kdebase-kwrite')
- cd build/kwrite
+ cd build
make DESTDIR="${pkgdir}" install
- cd ../../build/doc/kwrite
- make DESTDIR="${pkgdir}" install
+ find "$pkgdir" -type f -name '*kate*' -exec rm {} \;
+ rm -r "$pkgdir"/usr/lib/qt/plugins/ktexteditor \
+ "$pkgdir"/usr/share/doc/HTML/*/{kate,katepart} \
+ "$pkgdir"/usr/share/katexmltools \
+ "$pkgdir"/usr/share/locale/*/LC_MESSAGES/{kterustcompletion,tabswitcherplugin}.mo \
+ "$pkgdir"/usr/share/plasma/plasmoids
}
package_kate() {
@@ -58,12 +63,9 @@
provides=('kdesdk-kate')
optdepends=('konsole: open a terminal in Kate')
- cd build/kate
+ cd build
make DESTDIR="${pkgdir}" install
- cd ../../build/doc/kate
- make DESTDIR="${pkgdir}" install
-
- cd ../../../build/addons
- make DESTDIR="${pkgdir}" install
+ find "$pkgdir" -type f -name '*kwrite*' -exec rm {} \;
+ rm -r "$pkgdir"/usr/share/doc/HTML/*/kwrite
}
More information about the arch-commits
mailing list