[arch-commits] Commit in plasma-workspace/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Wed Jan 28 17:52:49 UTC 2015


    Date: Wednesday, January 28, 2015 @ 18:52:49
  Author: andrea
Revision: 230211

upgpkg: plasma-workspace 5.2.0-2

Split out drkonqi, see FS#43070

Modified:
  plasma-workspace/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-28 17:27:23 UTC (rev 230210)
+++ PKGBUILD	2015-01-28 17:52:49 UTC (rev 230211)
@@ -3,24 +3,26 @@
 # Contributor: Antonio Rojas
 # Contributor: Alexey D. <lq07829icatm at rambler.ru>
 
-pkgname=plasma-workspace
+pkgbase=plasma-workspace
+pkgname=('plasma-workspace' 'drkonqi')
 pkgver=5.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc='KDE Plasma Workspace'
 arch=('i686' 'x86_64')
 url='https://projects.kde.org/projects/kde/workspace/plasma-workspace'
 license=('LGPL')
-depends=('knewstuff' 'kjsembed' 'knotifyconfig' 'libxcursor' 'kwayland'
+# note on libxdamage:
+# not detected by namcap because libgl depends on it
+# but nvidia providing libgl does not depend on libxdamage
+depends=('knewstuff' 'kjsembed' 'knotifyconfig' 'libxdamage' 'kwayland'
          'libksysguard' 'libkscreen-frameworks' 'ktexteditor' 'libqalculate'
          'qt5-tools' 'kded' 'kde-cli-tools' 'xorg-xrdb' 'xorg-xsetroot'
          'xorg-xmessage' 'xorg-xprop')
 makedepends=('extra-cmake-modules' 'kdoctools' 'kwin' 'gpsd' 'baloo-frameworks'
              'krunner')
-optdepends=('plasma-workspace-wallpapers: additional wallpapers'
-            'gpsd: GPS support for geolocation')
 conflicts=('kdebase-workspace')
 groups=('plasma')
-source=("http://download.kde.org/stable/plasma/${pkgver}/$pkgname-$pkgver.tar.xz"
+source=("http://download.kde.org/stable/plasma/${pkgver}/${pkgbase}-${pkgver}.tar.xz"
         'kde.pam')
 md5sums=('4ffdb4c7e310dff222abd452fd67e74d'
          '929b182dec8a096206ad493477c09d2c')
@@ -28,7 +30,7 @@
 prepare() {
   mkdir build
 
-  cd ${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   # be sure to use the Qt5 version of qtpaths
   sed -i 's:qtpaths:qtpaths-qt5:' startkde/startkde.cmake
 }
@@ -35,7 +37,7 @@
 
 build() {
   cd build
-  cmake ../${pkgname}-${pkgver} \
+  cmake ../${pkgbase}-${pkgver} \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DLIB_INSTALL_DIR=lib \
@@ -45,10 +47,26 @@
   make
 }
 
-package() {
+package_plasma-workspace() {
+  optdepends=('plasma-workspace-wallpapers: additional wallpapers'
+              'gpsd: GPS support for geolocation')
+
   cd build
   make DESTDIR="${pkgdir}" install
 
   install -D "${srcdir}"/kde.pam \
     "${pkgdir}"/etc/pam.d/kde
+
+  # Remove conflicts with drkonqi
+  rm "${pkgdir}"/usr/lib/drkonqi
+  rm -r "${pkgdir}"/usr/share/drkonqi
+  rm "${pkgdir}"/usr/lib/libKF5XmlRpcClientPrivate.*
 }
+
+package_drkonqi() {
+  pkgdesc='KDE crash handler'
+  depends=('kdewebkit')
+
+  cd build/drkonqi
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list