blob: bb520fea4b3078b6a80047b2c3c03aae494e24f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Maintainer (Artix): artoo <artoo@manjaro.org>
# Contributor (Arch): kozec <kozec at kozec.com>
# Contributor (Arch): Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor (Arch): Jan de Groot <jgc@archlinux.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_pkgname=polkit
pkgname=polkit-elogind
pkgver=0.113+34+g29ba7af
pkgrel=1
pkgdesc="PolyciKit with elogind support for non-systemd systems"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.freedesktop.org/wiki/Software/polkit"
license=('LGPL')
provides=("polkit=$pkgver")
depends=('glib2' 'pam' 'expat' 'js' 'elogind')
makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'git' 'autoconf-archive' 'libelogind')
conflicts=('polkit' 'polkit-consolekit')
#replaces=('polkit-consolekit')
options=('!libtool')
_commit=29ba7afba1b79a325183a71966f35926dfdf506e # master
#source=("http://www.freedesktop.org/software/polkit/releases/$_pkgname-$pkgver.tar.gz")
source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit"
'99-parabola.rules'
'polkit-0.114-elogind.patch')
sha256sums=('SKIP'
'd28d6ecaf7682860e2b3768bb266bd94313546b7cd0ef3c2eace7b1576c47adb'
'e5eb83a8922f1540309ce5884c4bd40b2972aa75778da945e2392501961a860b')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $_pkgname #-$pkgver
patch -Np 1 -i "${srcdir}"/polkit-0.114-elogind.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $_pkgname #-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--localstatedir=/var \
--libexecdir=/usr/lib \
--enable-libsystemd-login=no \
--enable-libelogind=yes \
--disable-static \
--enable-gtk-doc \
--with-authfw=pam \
--with-os-type=gentoo
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $_pkgname #-$pkgver
make -k check || :
}
package() {
cd $_pkgname #-$pkgver
make DESTDIR="$pkgdir" install
chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
chmod 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
install -m0644 "${srcdir}"/99-parabola.rules "${pkgdir}"/etc/polkit-1/rules.d
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
u polkitd 102 "PolicyKit daemon"
m polkitd proc
END
}
|