summaryrefslogtreecommitdiff
path: root/community/openrc-settingsd/APKBUILD
blob: eb1b4891d9f218bd140d310e8dbe66f6ab1525c0 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=openrc-settingsd
pkgver=1.2.0
pkgrel=1
pkgdesc="System settings D-Bus service for OpenRC"
url="https://gitlab.com/postmarketOS/openrc-settingsd"
arch="all"
license="GPL-2.0-or-later"
depends="tzdata"
makedepends="
	dbus-dev
	glib-dev
	libdaemon-dev
	meson
	openrc-dev
	polkit-dev
	"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://gitlab.com/postmarketOS/openrc-settingsd/-/archive/v$pkgver/openrc-settingsd-v$pkgver.tar.gz
	use-profiled-instead-of-envd.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	# Remove dbus service files to avoid auto-launch.
	# The user is expected to start the service with openrc instead.
	rm -rv "$pkgdir"/usr/share/dbus-1/system-services
}

sha512sums="
e7bd0561febfd61be3b139c74e9f0fd89aa21d9975d7e89199d4a0cbb4de51e90cd977550494aaabcb3e6d24ff7f30fe32e4df19e252d437deaae996551eea8d  openrc-settingsd-v1.2.0.tar.gz
d06d691c1ef52c0e4c5d68ad7d25eba73ad8fffa3d3675f5c79ff93808131c11f4dbbd13db64c463bb87ec8ebed143878703ba281e1241947d66fcad48063e56  use-profiled-instead-of-envd.patch
"