summaryrefslogtreecommitdiff
path: root/community/kde-gtk-config/PKGBUILD
blob: 88840a813f87c64abaea55d7f29611102e3e6eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 89140 2013-04-27 07:58:51Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: birdflesh <antkoul at gmail dot com>

pkgname=kde-gtk-config
pkgver=2.2.1
pkgrel=1
pkgdesc="GTK2 and GTK3 Configurator for KDE"
arch=('i686' 'x86_64')
url="https://projects.kde.org/kde-gtk-config"
license=('GPL3')
depends=('kdelibs')
makedepends=('cmake' 'automoc4' 'gtk2' 'gtk3')
optdepends=('gtk2: GTK+ v2 support'
	    'gtk3: GTK+ v3 support')
source=("http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz")
md5sums=('d155ed431d509e54a60383a70b700e1c')
install=$pkgname.install

build() {
  cd "$srcdir"

  mkdir -p build && cd build

  cmake ../$pkgname-$pkgver \
    -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package(){
  cd "$srcdir/build"

  make DESTDIR="$pkgdir" install
}