# Template file for 'gnome-utils'
pkgname=gnome-utils
version=3.0.1
revision=1
distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--disable-schemas-install --disable-scrollkeeper
--with-gconf-schema-file-dir=/usr/share/gconf/schemas
--localstatedir=/var --disable-schemas-compile"
short_desc="GNOME common utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=7debe9ca4ba8b8852f67c1a359c613dbfa10e10abfaa2235261cbc2520daf218
long_desc="
 This packages contains common utilities for the GNOME desktop."

triggers="gsettings-schemas"
gconf_schemas="gnome-search-tool.schemas"
gtk_iconcache_dirs="/usr/share/icons/hicolor"
subpackages="$pkgname-devel"

Add_dependency run glibc
Add_dependency run gtk+3
Add_dependency run glib
Add_dependency run pango
Add_dependency run gdk-pixbuf
Add_dependency run cairo
Add_dependency run libgtop
Add_dependency run freetype
Add_dependency run libXext
Add_dependency run libX11
Add_dependency run libcanberra
Add_dependency run GConf
Add_dependency run atk
Add_dependency run libSM
Add_dependency run libICE
Add_dependency run zlib
Add_dependency run libpng
Add_dependency run fontconfig

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build gnome-doc-utils
Add_dependency build gtk+3-devel
Add_dependency build glib-devel
Add_dependency build pango-devel
Add_dependency build gdk-pixbuf-devel
Add_dependency build cairo-devel
Add_dependency build libgtop-devel
Add_dependency build freetype-devel
Add_dependency build libXext-devel
Add_dependency build libX11-devel
Add_dependency build libcanberra-devel
Add_dependency build GConf-devel
Add_dependency build atk-devel
Add_dependency build libSM-devel
Add_dependency build libICE-devel
Add_dependency build zlib-devel
Add_dependency build libpng-devel
Add_dependency build fontconfig-devel

Add_dependency full gsettings-desktop-schemas
Add_dependency full hicolor-icon-theme
Add_dependency full desktop-file-utils

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