aboutsummaryrefslogtreecommitdiffstats
path: root/main/dconf/APKBUILD
blob: 7dcc5e65d43d7ab5a0e9a6d558bf8148ac7367f8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dconf
pkgver=0.32.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"
subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
source="https://download.gnome.org/sources/dconf/${pkgver%.*}/dconf-$pkgver.tar.xz"
builddir="$srcdir"/dconf-$pkgver

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--localstatedir=/var \
		--buildtype=release \
		. output
	ninja -C output
}

check() {
	cd "$builddir"
	meson test -C output -t 10
}

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="09ae65ad365947aed24228b94978b290060264e55b443d18a743e943627703c92e16e3a5ca8a0aaf3549f7a1d5aad77bdc285d4c8519db705d3104ec22b111a0  dconf-0.32.0.tar.xz"