blob: 7954f5496199f7d35cd65268a685c9f28a0e712e (
plain) (
blame)
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
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Aline Freitas <aline@alinefreitas.com.br>
pkgname=polkit-git
pkgver=0.118.r12.g2c8287f
pkgrel=1
epoch=1
pkgdesc="Application development toolkit for controlling system-wide privileges"
arch=(i686 x86_64)
license=(LGPL)
url="https://www.freedesktop.org/wiki/Software/polkit/"
depends=(glib2 pam expat systemd js78)
makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive python-six)
provides=('polkit')
conflicts=('polkit')
options=('!emptydirs')
#source=($pkgname::git+http://anongit.freedesktop.org/git/polkit.git)
source=($pkgname::git+https://gitlab.freedesktop.org/polkit/polkit.git)
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags --long|sed -r 's,([^-]*-g),r\1,;s,-,.,g'
}
build() {
cd $pkgname
./autogen.sh --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --libexecdir=/usr/lib \
--enable-libsystemd-login=yes --disable-static \
--enable-gtk-doc --with-os-type=redhat
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
chmod 0755 "$pkgdir/etc/polkit-1/rules.d"
chmod 0755 "$pkgdir/usr/share/polkit-1/rules.d"
install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" <<END
d /etc/polkit-1/rules.d 0750 root polkitd -
d /usr/share/polkit-1/rules.d 0750 root polkitd -
END
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
u polkitd 102 "PolicyKit daemon"
m polkitd proc
END
}
# vim: ts=2 sw=2 et:
|