# Maintainer: David P. # Maintainer: Omar Vega Ramos pkgname=polkit-elogind _pkgname=${pkgname/-elogind} pkgver=0.114 pkgrel=1.parabola1 pkgdesc="Application development toolkit for controlling system-wide privileges, with libelogind support" arch=(x86_64 i686 armv7h) license=(LGPL) provides=("$_pkgname=$pkgver") url="https://www.freedesktop.org/wiki/Software/polkit/" depends=(glib2 pam expat elogind js52) makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive) conflicts=('polkit' 'polkit-consolekit') replaces=('polkit-consolekit') _commit=ed06baed179166389d536420a6fc532781d48178 # tags/0.114^0 source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit" '99-parabola.rules' 'elogind-configure-fix.patch') sha256sums=('SKIP' 'd28d6ecaf7682860e2b3768bb266bd94313546b7cd0ef3c2eace7b1576c47adb' 'd90b2a95aa3e9e1ebf9369c038c144e04900e095c5405bc4ba4901c31bf3f59b') pkgver() { cd $_pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $_pkgname git cherry-pick -n 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409 patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch NOCONFIGURE=1 ./autogen.sh } build() { cd $_pkgname ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --libexecdir=/usr/lib \ --enable-libsystemd-login=no --disable-static \ --enable-gtk-doc --with-os-type=redhat \ --enable-libelogind=yes --with-systemdsystemunitdir=no sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { cd $_pkgname make -k check || : } package() { cd $_pkgname make DESTDIR="$pkgdir" install install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf" <