From a540c6b142594e64623e47a72edfc1d029b0fa0e Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 23 Nov 2012 19:56:27 +0000 Subject: [PATCH] Finally add the new KCM from KDE --- kde-gtk-config/PKGBUILD | 36 +++++++++++++++++++++++++++ kde-gtk-config/kde-gtk-config.install | 11 ++++++++ 2 files changed, 47 insertions(+) create mode 100644 kde-gtk-config/PKGBUILD create mode 100644 kde-gtk-config/kde-gtk-config.install diff --git a/kde-gtk-config/PKGBUILD b/kde-gtk-config/PKGBUILD new file mode 100644 index 000000000..da3efe93b --- /dev/null +++ b/kde-gtk-config/PKGBUILD @@ -0,0 +1,36 @@ +# KDE Packages for Chakra +# +# maintainer: Manuel tortosa + +pkgname=kde-gtk-config +pkgver=2.1.1 +pkgrel=1 +pkgdesc="A KCM for Configuring the GTK2 and GTK3 look&feel" +arch=('x86_64') +url="https://projects.kde.org/projects/kdereview/kde-gtk-config" +license=('GPL') +depends=('kde-runtime') +makedepends=('cmake' 'automoc4' 'gtk2' 'gtk3') +optdepends=('gtk2: GTK+ v2 support' + 'gtk3: GTK+ v3 support') +conflicts=('kde-gtk-config-git' 'chakra-gtk-config' 'chakra-gtk-config-git') +provides=('chakra-gtk-config') +replaces=('chakra-gtk-config') +source=("ftp://ftp.kde.org/pub/kde/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.bz2") +install=$pkgname.install +md5sums=('7b211c59c46293de8baaf3d74156d64c') + +build() { + cd "$srcdir" + mkdir build + cd build + cmake ../$pkgname-$pkgver \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package(){ + cd "$srcdir/build" + make DESTDIR="$pkgdir" install +} diff --git a/kde-gtk-config/kde-gtk-config.install b/kde-gtk-config/kde-gtk-config.install new file mode 100644 index 000000000..2eadc2e88 --- /dev/null +++ b/kde-gtk-config/kde-gtk-config.install @@ -0,0 +1,11 @@ +post_install() { +xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}