aboutsummaryrefslogtreecommitdiffstats
path: root/main/dconf/APKBUILD
blob: ce3823f36b3fb18988f12c0b605442162bb87b8c (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
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dconf
pkgver=0.18.0
pkgrel=0
pkgdesc="A low-level configuration system."
url="http://live.gnome.org/dconf"
arch="all"
license="LGPL2.1"
depends=""
makedepends="vala gobject-introspection-dev gtk+3.0-dev glib-dev libxml2-dev
	dbus-dev libxslt docbook-xsl"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-editor $pkgname-lang"
source="http://download.gnome.org/sources/dconf/${pkgver%.*}/dconf-$pkgver.tar.xz
	"

#	0001-Avoid-posix_fallocate-so-it-works-on-uClibc.patch
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch)
			patch -p1 -i "$srcdir/$i" || return 1
			;;
		esac
	done
}

build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/dconf \
		|| return 1
	make V=1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

editor() {
	pkgdesc="Configuration editor for dconf"
	mkdir -p "$subpkgdir"/usr/bin \
		"$subpkgdir"/usr/share \
		|| return 1
	mv "$pkgdir"/usr/bin/dconf-editor "$subpkgdir"/usr/bin/ || return 1
	mv "$pkgdir"/usr/share/applications \
		"$pkgdir"/usr/share/icons \
		"$pkgdir"/usr/share/glib-2.0 \
		"$subpkgdir"/usr/share/  || return 1
}
md5sums="69a12ed68893f2e1e81ac4e531bc1515  dconf-0.18.0.tar.xz"
sha256sums="109b1bc6078690af1ed88cb144ef5c5aee7304769d8bdc82ed48c3696f10c955  dconf-0.18.0.tar.xz"
sha512sums="618c46b6949ccd8d0ae0a0ee7864882d31dd4dcd56170100a92c59427014783284ed005579e5e98796ace90b6ef2656a6a12361b584641cef092e77a031de9e5  dconf-0.18.0.tar.xz"