# Template file for 'dconf'
pkgname=dconf
version=0.18.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config intltool libxslt docbook-xsl"
makedepends="vala-devel dbus-devel gtk+3-devel libxml2-devel"
short_desc="A low-level configuration system"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://live.gnome.org/dconf"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=109b1bc6078690af1ed88cb144ef5c5aee7304769d8bdc82ed48c3696f10c955
long_desc="
 dconf is a low-level configuration system. Its main purpose is to provide a
 backend to GSettings on platforms that don't already have configuration
 storage systems."

dconf-devel_package() {
	depends="libglib-devel vala-devel dconf-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/gtk-doc
		vmove usr/share/vala
	}
}

dconf-editor_package() {
	short_desc+=" - GTK+ editor"
	pkg_install() {
		vmove usr/bin/dconf-editor
		vmove usr/share/applications
		vmove usr/share/man/man1/dconf-editor.1
	}
}

dconf_package() {
	pkg_install() {
		vmove all
	}
}