[arch-commits] Commit in (4 files)

Antonio Rojas arojas at archlinux.org
Mon Apr 6 19:23:48 UTC 2015


    Date: Monday, April 6, 2015 @ 21:23:47
  Author: arojas
Revision: 130845

Rename KDE4 version of kscreen to kscreen4

Added:
  kscreen4/
  kscreen4/trunk/
  kscreen4/trunk/PKGBUILD
  kscreen4/trunk/kscreen4.install

------------------+
 PKGBUILD         |   37 +++++++++++++++++++++++++++++++++++++
 kscreen4.install |   16 ++++++++++++++++
 2 files changed, 53 insertions(+)

Added: kscreen4/trunk/PKGBUILD
===================================================================
--- kscreen4/trunk/PKGBUILD	                        (rev 0)
+++ kscreen4/trunk/PKGBUILD	2015-04-06 19:23:47 UTC (rev 130845)
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 126643 2015-01-27 14:06:03Z andrea $
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: birdflesh <antkoul at gmail dot com>
+
+pkgname=kscreen4
+_pkgname=kscreen
+pkgver=1.0.2.1
+pkgrel=1
+pkgdesc="KDE's screen management software"
+arch=('i686' 'x86_64')
+url='https://projects.kde.org/kscreen'
+license=('GPL' 'LGPL')
+depends=('kdebase-runtime' 'libkscreen4')
+conflicts=('kscreen' 'kscreen-frameworks')
+replaces=('kscreen<5')
+makedepends=('cmake' 'automoc4')
+install=$pkgname.install
+source=("http://download.kde.org/stable/${_pkgname}/${pkgver}/src/${_pkgname}-${pkgver}.tar.xz")
+md5sums=('cd3d6ffdb0e44c418c2804fc72b8391b')
+
+prepare() {
+  mkdir build
+}
+
+build() {
+  cd build
+  cmake ../$_pkgname-$pkgver \
+    -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Added: kscreen4/trunk/kscreen4.install
===================================================================
--- kscreen4/trunk/kscreen4.install	                        (rev 0)
+++ kscreen4/trunk/kscreen4.install	2015-04-06 19:23:47 UTC (rev 130845)
@@ -0,0 +1,16 @@
+post_install() {
+    printf "==> To enable KSceen, run in a terminal:\n"
+    printf "    qdbus-qt4 org.kde.kded /kded org.kde.kded.unloadModule randrmonitor\n"
+    printf "    qdbus-qt4 org.kde.kded /kded org.kde.kded.setModuleAutoloading randrmonitor false\n"
+    printf "    qdbus-qt4 org.kde.kded /kded org.kde.kded.loadModule kscreen\n"
+
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_remove() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}



More information about the arch-commits mailing list