blob: 43837eda8cbc474df9568cf1d9ae4453136ea87c (
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
|
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (arch): Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: jtts <jussaar@mbnet.fi>
# Contributor: GordonGR <gordongr@freemail.gr>
pkgname=lib32-polkit
pkgver=122
pkgrel=1
pkgrel+=.nonsystemd1
pkgdesc="Application development toolkit for controlling system-wide privileges"
url="https://gitlab.freedesktop.org/polkit/polkit"
arch=(x86_64)
license=(LGPL)
depends=(
lib32-glib2
lib32-elogind
polkit
)
makedepends=(
git
lib32-expat
lib32-pam
meson
)
provides=(libpolkit-gobject-1.so)
options=(debug)
_commit=da87c5698019897dd731bb2cbb54ebd9c9481f52 # tags/122
source=(
"git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
multilib.diff
)
b2sums=('SKIP'
'9b588509dae8528bfb8aa3cb734bf79b194350587d763ed70fa8e91a1a9fe54bb6cef352e13e31560f3b4ad418157111eb3e2678ae5dd84f052e4dcd9cde53c9')
pkgver() {
cd polkit
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd polkit
# Fix post-install script with libs-only=true
git apply -3 ../multilib.diff
}
build() {
local meson_options=(
--libdir=/usr/lib32
-D introspection=false
-D libs-only=true
-D os_type=redhat
-D session_tracking=libelogind
-D systemdsystemunitdir=no
-D tests=true
)
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG='i686-pc-linux-gnu-pkg-config'
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"
rm -r "$pkgdir"/{etc,usr/{include,share,no}}
}
|