git » kate.git » commit 286b3fe

KDE Applications 17.04.0

author Antonio Rojas
2017-04-20 07:22:24 UTC
committer Antonio Rojas
2017-04-20 07:22:24 UTC
parent 15e41f0256ee9ea1bc9319013695eb0a2ca07757

KDE Applications 17.04.0

PKGBUILD +16 -14

diff --git a/PKGBUILD b/PKGBUILD
index e939667..9bdfd17 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,16 +5,17 @@
 pkgbase=kate
 pkgname=('kwrite'
          'kate')
-pkgver=16.12.3
-pkgrel=4
+pkgver=17.04.0
+pkgrel=1
 arch=('i686' 'x86_64')
 license=('GPL' 'LGPL' 'FDL')
 makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'plasma-framework' 'knewstuff' 'ktexteditor'
              'threadweaver' 'kitemmodels' 'kactivities')
 source=("https://download.kde.org/stable/applications/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz"{,.sig})
-sha256sums=('19e8c40985392b5640c022ceb577aa16541fdd99d389645e38b22d621c6d79b9'
+sha256sums=('6c8d1936a2ec3a7c3c71e353da11e483251875f51846b9609667f9beee1a6042'
             'SKIP')
 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid@kde.org>
+options=(!emptydirs)
 
 prepare() {
   mkdir -p build
@@ -35,34 +36,35 @@ package_kwrite() {
   pkgdesc="Text Editor"
   groups=('kde-applications' 'kdebase')
   url="https://www.kde.org/applications/utilities/kwrite/"
-  depends=('ktexteditor' 'kded' 'kactivities' 'hicolor-icon-theme')
+  depends=('ktexteditor' 'kactivities' 'hicolor-icon-theme')
   replaces=('kdebase-kwrite')
   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() {
   pkgdesc="Advanced Text Editor"
   groups=('kde-applications' 'kdebase')
   url="https://www.kde.org/applications/utilities/kate/"
-  depends=('knewstuff' 'ktexteditor' 'threadweaver' 'kded' 'kitemmodels' 'kactivities' 'hicolor-icon-theme')
+  depends=('knewstuff' 'ktexteditor' 'threadweaver' 'kitemmodels' 'kactivities' 'hicolor-icon-theme')
   replaces=('kdesdk-kate')
   conflicts=('kdesdk-kate')
   provides=('kdesdk-kate')
   optdepends=('konsole: open a terminal in Kate')
 
-  cd build/kate
-  make DESTDIR="${pkgdir}" install
-
-  cd ../../build/doc/kate
+  cd build
   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
 }