From 975e308d02fede84179c6f975c2fd391e8add8fa Mon Sep 17 00:00:00 2001 From: Neophytos Date: Sat, 26 Oct 2013 21:05:08 +0000 Subject: [PATCH] qtcurve: 1.8.17 & major rework of the PKGBUILD --- qtcurve/PKGBUILD | 60 +++++++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/qtcurve/PKGBUILD b/qtcurve/PKGBUILD index 2c025cabb..7c9c35fb1 100644 --- a/qtcurve/PKGBUILD +++ b/qtcurve/PKGBUILD @@ -1,41 +1,49 @@ -# -# Apps Packages for Chakra, part of chakra-project.org -# -# maintainer abveritas@chakra-project.org -# contributor Giuseppe CalĂ  +# maintainer: Neophytos Kolokotronis +# contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/qtcurve -pkgname=qtcurve -pkgver=1.8.14 +pkgbase=qtcurve +pkgname=('qtcurve-utils' 'qtcurve-kde4') #'qtcurve-gtk2' ) +pkgver=1.8.17 pkgrel=1 arch=('x86_64') license=('GPL') -pkgdesc='A configurable set of widget styles for KDE' -url='http://www.kde-look.org/content/show.php?content=40492' +pkgdesc='A configurable set of widget styles for KDE' #and gtk2 +url='https://github.com/QtCurve/qtcurve' depends=('kde-workspace') -makedepends=('cmake' 'automoc4') +makedepends=('cmake' 'automoc4' 'qt' 'kde-workspace') #'gtk2') categories=('system') -source=("http://craigd.wikispaces.com/file/view/QtCurve-KDE4-${pkgver}.tar.bz2" - 'fix-kwin_decoration-macro.patch') -md5sums=('b4d7924806058f39e842ce7ffe47a4f8' - '7366e45ef9f24f53a36f87a539a937d6') +source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +md5sums=('c4f2e9bc296398b42bfc132b88a3b989') build() { - cd "${srcdir}/QtCurve-KDE4-${pkgver}" - patch -p1 -i "${srcdir}/fix-kwin_decoration-macro.patch" - - cd "${srcdir}" + cd $pkgbase-$pkgver mkdir build cd build - cmake ../QtCurve-KDE4-${pkgver} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DQTC_KWIN=true \ - -DQTC_STYLE_SUPPORT=true + cmake .. -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_GTK2=false \ + -DENABLE_QT5=false make } -package() { - cd "${srcdir}/build" - make DESTDIR="${pkgdir}" install +package_qtcurve-utils() { + depends=('libx11') + cd $pkgbase-$pkgver/build/qtcurve-utils + make DESTDIR="$pkgdir" install } +package_qtcurve-kde4() { + depends=('qtcurve-utils' 'kde-workspace') + provides=qtcurve + replaces=qtcurve + conflicts=qtcurve + + cd $pkgbase-$pkgver/build/qt4 + make DESTDIR="$pkgdir" install + cd ../po + make DESTDIR="$pkgdir" install +} + + + +