# Template file for 'gconf-editor'
pkgname=gconf-editor
version=3.0.1
revision=3
build_style=gnu-configure
configure_args="--disable-schemas-install --disable-scrollkeeper
 --with-gconf-schema-file-dir=/usr/share/gconf/schemas"
hostmakedepends="pkg-config intltool itstool gnome-doc-utils GConf-devel which"
makedepends="libxml2-devel gtk+3-devel gsettings-desktop-schemas-devel
 hicolor-icon-theme desktop-file-utils gnome-doc-utils GConf-devel"
depends="gsettings-desktop-schemas>=3.10 hicolor-icon-theme desktop-file-utils"
short_desc="Graphical editor to maintain the Gnome registry"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=3064e84967b4b4216f5c7e065cfec8c52019438a590e9ed81366af2770660944

post_patch() {
	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
}

post_install() {
	mv ${DESTDIR}/usr/share/gconf/schemas/*.schemas ${wrksrc}
	gconf-merge-schema ${DESTDIR}/usr/share/gconf/schemas/${pkgname}.schemas \
		--domain ${pkgname} ${wrksrc}/*.schemas
}
