blob: d7d01e09befa1e6afd9ab17ca43fa0e7d889dec4 (
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
|
# Maintainer: Nathan Owens <ndowens@artixlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=polkit
pkgver=121
pkgrel=1
pkgrel+=.nonsystemd1
pkgdesc="Application development toolkit for controlling system-wide privileges"
url="https://gitlab.freedesktop.org/polkit/polkit"
arch=(x86_64)
arch+=(i686 armv7h)
license=(LGPL)
depends=(glib2 pam expat elogind js78 duktape)
makedepends=(meson gtk-doc gobject-introspection git)
checkdepends=(python-dbusmock)
provides=(libpolkit-{agent,gobject}-1.so)
backup=(etc/pam.d/polkit-1)
options=(debug)
_commit=827b0ddac5b1ef00a47fca4526fcf057bee5f1db # tags/121
source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
'99-parabola.rules'
meson-0.61.diff)
b2sums=('SKIP'
'd320d928b5480b5b8143717e6f88101912709020efc9583fbb233a2cc11aff51d36226b94cf69104db06f330e04d4dcfd6e4c7b027df75a3c72c43adec625fb2'
'29cef1cf9265ec0b70bf5a46655ee51b9855ce64e47636809b9704ca80edaf5777060d7469eea15a4126791d9290d44901726b6496acf83e41f46a96fe137ead')
pkgver() {
cd polkit
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd polkit
}
build() {
local meson_options=(
-D examples=true
-D gtk_doc=true
-D man=true
-D os_type=redhat
-D session_tracking=libelogind
-D tests=true
-D systemdsystemunitdir=foo
)
arch-meson polkit build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs -t 3
}
package() {
meson install -C build --destdir "$pkgdir"
install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
mv "$pkgdir"/{etc,usr/share}/polkit-1/rules.d/50-default.rules
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
u polkitd 102 "PolicyKit daemon"
m polkitd proc
END
install -m0644 "${srcdir}"/99-parabola.rules "${pkgdir}"/etc/polkit-1/rules.d
# workaround the unit enforcement, atm can't be disabled, needs patching
rm -rf "${pkgdir}"/usr/foo
}
# vim:set sw=2 et:
|