diff options
Diffstat (limited to 'community/qtcurve/PKGBUILD')
-rw-r--r-- | community/qtcurve/PKGBUILD | 62 |
1 files changed, 41 insertions, 21 deletions
diff --git a/community/qtcurve/PKGBUILD b/community/qtcurve/PKGBUILD index 815c9d945..d85ed86d5 100644 --- a/community/qtcurve/PKGBUILD +++ b/community/qtcurve/PKGBUILD @@ -1,29 +1,27 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# $Id: PKGBUILD 98877 2013-10-21 00:42:02Z speps $ +# Maintainer : speps <speps at aur dot archlinux dot org> +# Contributor: 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 +pkgname=('qtcurve-utils' 'qtcurve-gtk2' 'qtcurve-qt4' 'qtcurve-qt5' 'qtcurve-kde4') +pkgver=1.8.17 +pkgrel=1 +pkgdesc='A configurable set of widget styles for KDE and Gtk' arch=('i686' 'x86_64') -groups=('qtcurve') +url='https://github.com/QtCurve/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') +groups=('qtcurve') +makedepends=('cmake' 'automoc4' 'gtk2' 'qt4' 'qt5-svg' 'qt5-x11extras' 'kdebase-workspace') source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -md5sums=('ee0b35fe428807b0dc2b0c57e5eb4f38') +md5sums=('c4f2e9bc296398b42bfc132b88a3b989') build() { - cd "qtcurve-qt4-$pkgver" - - sed -i "s/QApplication/QCoreApplication/g" tools/gen_image_header_qt4.cpp + cd $pkgbase-$pkgver - mkdir build-{qt,kde}4 - - cd build-qt4 + mkdir build{,-kde4} + cd build cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DQTC_QT4_ENABLE_KDE=false @@ -31,18 +29,40 @@ build() { cd ../build-kde4 cmake .. -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_GTK2=false \ + -DENABLE_QT5=false make } +package_qtcurve-utils() { + depends=('libx11') + cd $pkgbase-$pkgver/build/qtcurve-utils + make DESTDIR="$pkgdir" install +} + +package_qtcurve-gtk2() { + depends=('qtcurve-utils' 'gtk2') + cd $pkgbase-$pkgver/build/gtk2 + make DESTDIR="$pkgdir" install +} + package_qtcurve-qt4() { - depends=('qt4') - cd "qtcurve-qt4-$pkgver/build-qt4/qt4/style" + depends=('qtcurve-utils' 'qt4') + cd $pkgbase-$pkgver/build/qt4 + make DESTDIR="$pkgdir" install +} + +package_qtcurve-qt5() { + depends=('qtcurve-utils' 'qt5-svg' 'qt5-x11extras') + cd $pkgbase-$pkgver/build/qt5 make DESTDIR="$pkgdir" install } package_qtcurve-kde4() { - depends=('kdebase-workspace') - cd "qtcurve-qt4-$pkgver/build-kde4" + depends=('qtcurve-utils' 'kdebase-workspace') + cd $pkgbase-$pkgver/build-kde4/qt4 + make DESTDIR="$pkgdir" install + cd ../po make DESTDIR="$pkgdir" install } |