[arch-commits] Commit in polkit-qt (kde-unstable kde-unstable/PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Mon Dec 14 16:54:33 UTC 2009


    Date: Monday, December 14, 2009 @ 11:54:33
  Author: andrea
Revision: 61260

prepare kde-unstable repo

Added:
  polkit-qt/kde-unstable/
  polkit-qt/kde-unstable/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Added: kde-unstable/PKGBUILD
===================================================================
--- kde-unstable/PKGBUILD	                        (rev 0)
+++ kde-unstable/PKGBUILD	2009-12-14 16:54:33 UTC (rev 61260)
@@ -0,0 +1,36 @@
+# $Id: $
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=polkit-qt
+pkgver=0.9.2
+pkgrel=3
+pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API'
+arch=('i686' 'x86_64')
+url='http://www.kde.org'
+license=('LGPL')
+depends=('policykit' 'qt')
+makedepends=('cmake')
+source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-${pkgver}.tar.bz2"
+        'link.patch')
+md5sums=('14cb821f8917c13ed4154a3ab8e596be'
+         '850a0ed23a86d048b35b288fdef3aae2')
+
+build() {
+	cd $srcdir/${pkgname}-${pkgver}
+	patch -p1 -i $srcdir/link.patch || return 1
+	cd ${srcdir}
+	mkdir build
+	cd build
+	cmake ../${pkgname}-${pkgver} \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_SKIP_RPATH=ON \
+		-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
+	make || return 1
+	make DESTDIR=$pkgdir install
+
+	# install cmake files, needed by KDE 4.4
+	install -d ${pkgdir}/usr/share/cmake-2.8/Modules
+	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/cmake/modules/{FindPolkitQt,InstallSettings,PkgConfigGetVar}.cmake \
+	  ${pkgdir}/usr/share/cmake-2.8/Modules/ || return 1
+}




More information about the arch-commits mailing list