Date: Saturday, December 21, 2013 @ 16:03:52 Author: andrea Revision: 202387
Keep trunk untouched Added: polkit-qt/kde-unstable/ Modified: polkit-qt/kde-unstable/PKGBUILD polkit-qt/trunk/PKGBUILD ----------------+ PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++-------------- trunk/PKGBUILD | 7 ++++--- 2 files changed, 45 insertions(+), 17 deletions(-) Modified: kde-unstable/PKGBUILD =================================================================== --- trunk/PKGBUILD 2013-12-21 14:07:21 UTC (rev 202381) +++ kde-unstable/PKGBUILD 2013-12-21 15:03:52 UTC (rev 202387) @@ -2,30 +2,57 @@ # Maintainer: Andrea Scarpino <[email protected]> # Contributor: Pierre Schmitz <[email protected]> -pkgname=polkit-qt -pkgver=0.103.0 -pkgrel=2 -pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' +pkgbase=polkit-qt +pkgname=polkit-qt5 +#pkgname=('polkit-qt4' 'polkit-qt5') +pkgver=v0.103.0.r7.g3a5f879 +pkgrel=1 arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') -depends=('polkit' 'qt4') -makedepends=('cmake' 'automoc4') -source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2") -md5sums=('a105e233e6733fb072c9080cd7ae1af2') +makedepends=('extra-cmake-modules' 'polkit' 'qt5-base') +#makedepends=('extra-cmake-modules' 'automoc4' 'polkit' 'qt4' 'qt5-base') +source=('git://anongit.kde.org/polkit-qt-1.git#branch=qt5') +#source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2") +md5sums=('SKIP') +pkgver() { + cd ${pkgbase}-1 + git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + mkdir build + mkdir build-qt5 +} + build() { - . /etc/profile.d/qt4.sh +# cd build +# cmake ../${pkgname}-1-${pkgver} \ +# -DCMAKE_BUILD_TYPE=Release \ +# -DCMAKE_INSTALL_PREFIX=/usr +# make - mkdir build - cd build - cmake ../${pkgname}-1-${pkgver} \ + cd build-qt5 + cmake ../${pkgbase}-1 \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_PREFIX=/opt/kf5 \ + -DLIB_INSTALL_DIR=lib make } -package() { +package_polkit-qt4() { + pkgdesc="Qt4 wrapper around polkit-1 client libraries, used by kdelibs to provide the polkit-1 kauth backend and by KDE's polkit client" + depends=('polkit' 'qt4') + cd build make DESTDIR="${pkgdir}" install } + +package_polkit-qt5() { + pkgdesc="Qt5 wrapper around polkit-1 client libraries, used by kdelibs to provide the polkit-1 kauth backend and by KDE's polkit client" + depends=('polkit' 'qt5-base') + + cd build-qt5 + make DESTDIR="${pkgdir}" install +} Modified: trunk/PKGBUILD =================================================================== --- trunk/PKGBUILD 2013-12-21 15:03:15 UTC (rev 202386) +++ trunk/PKGBUILD 2013-12-21 15:03:52 UTC (rev 202387) @@ -14,10 +14,11 @@ source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2") md5sums=('a105e233e6733fb072c9080cd7ae1af2') +prepare() { + mkdir build +} + build() { - . /etc/profile.d/qt4.sh - - mkdir build cd build cmake ../${pkgname}-1-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \
