2015-06-14 02:25:42 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2017-01-23 14:38:16 +00:00
|
|
|
# - added rules.d directory ownership to polkit.install
|
2015-06-14 02:25:42 +00:00
|
|
|
|
|
|
|
pkgname=polkit
|
2017-01-23 14:38:16 +00:00
|
|
|
pkgver=0.113+29+g3272a98
|
|
|
|
pkgrel=1
|
2015-06-14 02:25:42 +00:00
|
|
|
pkgdesc="Application development toolkit for controlling system-wide privileges"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
license=(LGPL)
|
|
|
|
url="http://www.freedesktop.org/wiki/Software/polkit"
|
2017-01-23 14:38:16 +00:00
|
|
|
depends=(glib2 pam expat systemd js)
|
|
|
|
makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
|
2015-06-14 02:25:42 +00:00
|
|
|
install=polkit.install
|
2017-01-23 14:38:16 +00:00
|
|
|
_commit=3272a988655c3236b55bad70e9a3af20857f384b # master
|
|
|
|
source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --tags | sed 's/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
}
|
2015-06-14 02:25:42 +00:00
|
|
|
|
|
|
|
build() {
|
2017-01-23 14:38:16 +00:00
|
|
|
cd $pkgname
|
2015-06-14 02:25:42 +00:00
|
|
|
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
|
|
--localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
|
|
|
|
--enable-libsystemd-login=yes --disable-static \
|
2015-08-20 12:08:10 +00:00
|
|
|
--enable-gtk-doc --with-os-type=redhat
|
2017-01-23 14:38:16 +00:00
|
|
|
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
|
2015-06-14 02:25:42 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2017-01-23 14:38:16 +00:00
|
|
|
check() {
|
|
|
|
cd $pkgname
|
|
|
|
make -k check || :
|
|
|
|
}
|
|
|
|
|
2015-06-14 02:25:42 +00:00
|
|
|
package() {
|
2017-01-23 14:38:16 +00:00
|
|
|
cd $pkgname
|
2015-06-14 02:25:42 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2017-01-23 14:38:16 +00:00
|
|
|
|
|
|
|
chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
|
|
|
|
chmod 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
|
2015-06-14 02:25:42 +00:00
|
|
|
}
|