-
Notifications
You must be signed in to change notification settings - Fork 7
/
PKGBUILD
74 lines (64 loc) · 1.3 KB
/
PKGBUILD
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
# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
# Contributor: Ionut Biru <[email protected]>
pkgname=accountsservice
pkgver=23.13.9
pkgrel=1
pkgdesc="D-Bus interface for user account query and manipulation"
url="https://gitlab.freedesktop.org/accountsservice/accountsservice"
arch=(loong64 x86_64)
license=(GPL3)
depends=(
glib2
libxcrypt
polkit
shadow
systemd
)
makedepends=(
docbook-xsl
git
gobject-introspection
gtk-doc
meson
vala
xmlto
)
checkdepends=(
python-dbusmock
python-gobject
)
_commit=57e491f5e6f3da2d5a949f4f8747c8f4e8ed799d # tags/23.13.9^0
source=(
"git+https://gitlab.freedesktop.org/accountsservice/accountsservice.git#commit=$_commit"
)
b2sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
}
build() {
local meson_options=(
-D admin_group=wheel
-D docbook=true
-D gtk_doc=true
)
arch-meson $pkgname build "${meson_options[@]}"
meson compile -C build
}
check() {
# Tests fail: build containers lack en_GB.UTF-8
meson test -C build --print-errorlogs || :
}
package() {
depends+=(
libcrypt.so
libg{lib,object,io}-2.0.so
libsystemd.so
)
provides+=(libaccountsservice.so)
meson install -C build --destdir "$pkgdir"
}
# vim:set sw=2 sts=-1 et: