# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <fossdd@pwned.life>
pkgname=dconf
pkgver=0.40.0
pkgrel=6
pkgdesc="low-level configuration system"
url="https://wiki.gnome.org/Projects/dconf"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	bash-completion-dev
	dbus-dev
	docbook-xsl
	glib-dev
	libxml2-dev
	meson
	py3-setuptools
	vala
	"
checkdepends="dbus"
subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion"
source="https://download.gnome.org/sources/dconf/${pkgver%.*}/dconf-$pkgver.tar.xz
	systemd-userunit.patch
	"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test -C output -t 100
}

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

sha512sums="
71396d71f24f47653181482b052fdfc63795c50c373de34e2fb93e16101745daa7e81192b79a102d5389911cea34138eedf3ac32bc80562018e8a7f31963559a  dconf-0.40.0.tar.xz
320cafc3229c0f5e90f468c948e9a9d1499f69a40cea13c9d75e33d96c9fbef1584b1507fbcdb7ca12f967eb925a399a7bc0805d6f62af52ef3de7dfefee4242  systemd-userunit.patch
"
