aboutsummaryrefslogtreecommitdiffstats
path: root/community/accountsservice/APKBUILD
blob: 6f749dc1faec287d14c60396a1ffb09d319e73ce (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=accountsservice
pkgver=0.6.55
pkgrel=2
pkgdesc="D-Bus interface for user account query and manipulation"
options="!check" # No testsuite
url="https://www.freedesktop.org/software/accountsservice/"
# mips64, s390x and riscv64 blocked by polkit
arch="all !mips64 !s390x !riscv64"
license="GPL-3.0-or-later"
depends_dev="glib-dev gobject-introspection-dev polkit-dev"
makedepends="
	$depends_dev
	intltool
	meson
	elogind-dev
	"
subpackages="$pkgname-dev $pkgname-lang lib$pkgname:libs"
source="https://www.freedesktop.org/software/accountsservice/accountsservice-$pkgver.tar.xz
	musl-fgetspent_r.patch
	musl-wtmp.patch
	"

prepare() {
	default_prepare
	# Fix location of dbus configuration, it should look at our datadir
	# (/usr/share) not the sysconfdir (/etc) which is reserved for
	# local admins
	sed -i '/dbus_conf_dir/s/sysconfdir/datadir/g' meson.build
}

build() {
	abuild-meson \
		-Dsystemdsystemunitdir=no \
		-Dsystemd=false \
		-Delogind=true \
		-Dintrospection=true \
		-Ddocbook=false \
		-Dgtk_doc=false \
		output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="c12e6a8e80f9b087f97238da4734d2d3a14a7c5cbd870a32a04b00116f176c818c39fb886f6dc72c3e93c136b0c2074ddf8f77e20431fa3bd54f138bea9d262d  accountsservice-0.6.55.tar.xz
469392beca8f5941eafaa193c4fcb0472770ee4183ce520416a1b5d6abafe0e201990eb74d06bfbd9e20af08e55aff5f0031f267083f6c6879f0fe4e5028103c  musl-fgetspent_r.patch
7b41a5fd4c2ab178762902d137ebf6eb6edbf97bae9255d17c4380c8c738b159aa25a2e51c31f740789560f17850c71b0bb60ee792a2a87be6b60cb5c89d7efc  musl-wtmp.patch"