aboutsummaryrefslogtreecommitdiffstats
path: root/main/dconf/APKBUILD
blob: 42bdff92751dc80bb6c59c8f1a1466ce013b197f (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.20.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="542db78e4867ac575ec0f69f79b3eebd  dconf-0.20.0.tar.xz"
sha256sums="22c046a247d05ea65ad181e3aef4009c898a5531f76c0181f8ec0dfef83447d9  dconf-0.20.0.tar.xz"
sha512sums="d3069638ac8bfc077bbcef7878ad7e39c5c008d6b673128b685817e94a5ba147f4a3218e9547d9ce1a70260771f6f8e5c4c609fa5cf5530160373d7191aa3b00  dconf-0.20.0.tar.xz"