git » plasma-desktop.git » commit afc0fa9

release

author Andrea Scarpino
2014-10-18 10:31:12 UTC
committer Andrea Scarpino
2014-10-18 10:31:12 UTC
parent f62b576961d80ebe80e42d99edee24ee71a7ba17

release

PKGBUILD +11 -8
plasma-desktop.install +12 -0

diff --git a/PKGBUILD b/PKGBUILD
index b1f82da..c01ef8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,21 @@
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
 # Contributor: Antonio Rojas
 
 pkgname=plasma-desktop
 pkgver=5.1.0.1
-pkgrel=2
+pkgrel=1
 pkgdesc='KDE Plasma Desktop'
 arch=('i686' 'x86_64')
 url='https://projects.kde.org/projects/kde/workspace/plasma-desktop'
 license=('LGPL')
-depends=('qt5-graphicaleffects' 'libxkbfile' 'libusb-compat' 'libcanberra' 'systemsettings' 'ksysguard' 'powerdevil' 'oxygen' 'kmenuedit' 'kinfocenter' 'polkit-kde-frameworks-git') # 'packagekit-qt'
+depends=('qt5-graphicaleffects' 'libxkbfile' 'libusb-compat' 'kinfocenter'
+         'systemsettings' 'ksysguard' 'powerdevil' 'oxygen' 'kmenuedit'
+         'polkit-kde-frameworks')
 makedepends=('extra-cmake-modules' 'kdoctools' 'python')
-optdepends=('plasma-nm: Network manager applet' 'kdebase-kdepasswd: to change the user password from systemsettings')
-conflicts=('kdebase-workspace')
+optdepends=('plasma-nm: Network manager applet')
+conflicts=('kdebase-workspace' 'kdebase-kdepasswd')
+install="${pkgname}.install"
+groups=('plasma-next')
 source=("http://download.kde.org/stable/plasma/5.1.0/$pkgname-$pkgver.tar.xz")
 md5sums=('235318be3ddaa7e842dea8b5f737aa6b')
 
@@ -25,14 +30,12 @@ build() {
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DLIB_INSTALL_DIR=lib \
     -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-    -DSYSCONF_INSTALL_DIR=/etc
+    -DSYSCONF_INSTALL_DIR=/etc \
+    -DBUILD_TESTING=OFF
   make
 }
 
 package() {
   cd build
   make DESTDIR="${pkgdir}" install
-
-# conflict with kdebase-kdepasswd
-  rm "$pkgdir"/usr/share/config.kcfg/kcm_useraccount*
 }
diff --git a/plasma-desktop.install b/plasma-desktop.install
new file mode 100644
index 0000000..5495fb1
--- /dev/null
+++ b/plasma-desktop.install
@@ -0,0 +1,12 @@
+post_install() {
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-desktop-database -q
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}