# Contributor: Natanael Copa # Maintainer: Rasmus Thomsen pkgname=dconf pkgver=0.34.0 pkgrel=0 pkgdesc="A low-level configuration system." url="https://wiki.gnome.org/Projects/dconf" arch="all" license="LGPL-2.1-or-later" makedepends="glib-dev dbus-dev docbook-xsl vala gtk+3.0-dev libxml2-dev meson py3-setuptools bash-completion" checkdepends="dbus" subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion:bashcomp:noarch" source="https://download.gnome.org/sources/dconf/${pkgver%.*}/dconf-$pkgver.tar.xz" build() { cd "$builddir" meson \ --prefix=/usr \ --localstatedir=/var \ --buildtype=release \ . output ninja -C output } check() { cd "$builddir" meson test -C output -t 100 } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C output install } bashcomp() { pkgdesc="Bash completions for $pkgname" install_if="$pkgname-$pkgver-r$pkgrel bash-completion" mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share } sha512sums="8b28373f31fe36ba3f21f56fca84563681c3648ff595709880cd9ac49fc6b130ac375fb89fd585f1dd62b5a2f728127292ea57d18feca1147b709a93e8c4c743 dconf-0.34.0.tar.xz"