summaryrefslogtreecommitdiff
path: root/community/qtcurve/PKGBUILD
blob: 815c9d945852be31949a2120be3b7245256f514e (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
37
38
39
40
41
42
43
44
45
46
47
48
# $Id$
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgbase=qtcurve
pkgname=('qtcurve-qt4' 'qtcurve-kde4')
pkgver=1.8.15
pkgrel=2
arch=('i686' 'x86_64')
groups=('qtcurve')
license=('GPL')
pkgdesc='A configurable set of widget styles for KDE and Gtk'
url='https://github.com/QtCurve/qtcurve-qt4'
makedepends=('cmake' 'automoc4' 'kdebase-workspace')
source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
md5sums=('ee0b35fe428807b0dc2b0c57e5eb4f38')

build() {
  cd "qtcurve-qt4-$pkgver"

  sed -i "s/QApplication/QCoreApplication/g" tools/gen_image_header_qt4.cpp

  mkdir build-{qt,kde}4

  cd build-qt4
  cmake .. -DCMAKE_BUILD_TYPE=Release \
           -DCMAKE_INSTALL_PREFIX=/usr \
           -DQTC_QT4_ENABLE_KDE=false
  make

  cd ../build-kde4
  cmake .. -DCMAKE_BUILD_TYPE=Release \
           -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package_qtcurve-qt4() {
  depends=('qt4')
  cd "qtcurve-qt4-$pkgver/build-qt4/qt4/style"
  make DESTDIR="$pkgdir" install
}

package_qtcurve-kde4() {
  depends=('kdebase-workspace')
  cd "qtcurve-qt4-$pkgver/build-kde4"
  make DESTDIR="$pkgdir" install
}