summaryrefslogtreecommitdiffstats
path: root/main/polkit/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/polkit/APKBUILD')
-rw-r--r--main/polkit/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/polkit/APKBUILD b/main/polkit/APKBUILD
new file mode 100644
index 000000000..6a1cbde74
--- /dev/null
+++ b/main/polkit/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Carlo Landmeter
+# Maintainer:
+pkgname=polkit
+_pkgname=PolicyKit
+pkgver=0.96
+pkgrel=0
+pkgdesc="Application development toolkit for controlling system-wide privileges"
+url="http://www.freedesktop.org/wiki/Software/PolicyKit"
+license="LGPL"
+depends=
+makedepends="expat-dev glib-dev eggdbus-dev intltool dbus-glib-dev autoconf
+ libtool automake gtk-doc"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://cgit.freedesktop.org/PolicyKit/snapshot/PolicyKit-$pkgver.tar.bz2
+ polkit-1-shadow.diff"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ #We do not need PAM
+ patch -p1 -i "$srcdir"/polkit-1-shadow.diff
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --libexecdir=/usr/lib/polkit-1 \
+ --localstatedir=/var \
+ --disable-static \
+ --disable-nls \
+ --disable-introspection \
+ --with-authfw=shadow \
+ --disable-gtk-doc \
+ --disable-gtk-doc-html \
+ --disable-gtk-doc-pdf
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="fbd8d49310ad885bd559b55633b548e1 PolicyKit-0.96.tar.bz2
+3ad3c2400e8dd33e35806e7aadb964e1 polkit-1-shadow.diff"