[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Andrea Scarpino
andrea at nymeria.archlinux.org
Fri Jul 11 09:47:07 UTC 2014
Date: Friday, July 11, 2014 @ 11:47:07
Author: andrea
Revision: 216787
upgpkg: polkit-qt 0.112-1
Upstream release
Modified:
polkit-qt/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++++++++++++++++++-----------
1 file changed, 32 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-07-11 09:46:17 UTC (rev 216786)
+++ PKGBUILD 2014-07-11 09:47:07 UTC (rev 216787)
@@ -2,31 +2,52 @@
# Maintainer: Andrea Scarpino <andrea at archlinux.org>
# Contributor: Pierre Schmitz <pierre at archlinux.de>
-pkgname=polkit-qt
-pkgver=0.103.0
-pkgrel=3
+pkgbase=polkit-qt
+pkgname=('polkit-qt4' 'polkit-qt5')
+pkgver=0.112
+pkgrel=1
pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API'
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=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base')
+source=(${pkgbase}-${pkgver}.tar.bz2::"http://quickgit.kde.org/?p=${pkgbase}-1.git&a=snapshot&h=40afa675bfa4cacd95487ce8b0544654c5f34e21&fmt=tbz2")
+md5sums=('c46401dbb55e2276616849e22b096768')
prepare() {
- mkdir build
+ mkdir build{,-qt5}
}
build() {
cd build
- cmake ../${pkgname}-1-${pkgver} \
+ cmake ../${pkgbase}-1 \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_DESTINATION=/usr/lib \
+ -DUSE_QT4=ON
make
+
+ cd ../build-qt5
+ cmake ../${pkgbase}-1 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_DESTINATION=/usr/lib
+ make
}
-package() {
+package_polkit-qt4() {
+ depends=('polkit' 'qt4')
+ replaces=('polkit-qt')
+ provides=('polkit-qt')
+ conflicts=('polkit-qt')
+
cd build
make DESTDIR="${pkgdir}" install
}
+
+package_polkit-qt5() {
+ depends=('polkit' 'qt5-base')
+
+ cd build-qt5
+ make DESTDIR="${pkgdir}" install
+}
More information about the arch-commits
mailing list