# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=2.30.1
distfiles="${GNOME_SITE}/$pkgname/2.30/$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-update-mimedb --enable-aboutme"
short_desc="GNOME control center"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=db050803a4bf3a2297255b8fff4810f2125a5b001d3fd785ee1ecd7f2c6f593b
long_desc="
 This packages the control center for the GNOME desktop."

gconf_schemas="control-center.schemas fontilus.schemas $pkgname.schemas"
gtk_iconcache_dirs="/usr/share/icons/hicolor"
subpackages="$pkgname-devel"
triggers="mimedb"

Add_dependency run glibc
Add_dependency run GConf
Add_dependency run libxml2
Add_dependency run gnome-desktop
Add_dependency run gtk+
Add_dependency run startup-notification
Add_dependency run atk
Add_dependency run glib
Add_dependency run pango
Add_dependency run cairo
Add_dependency run freetype
Add_dependency run fontconfig
Add_dependency run gnome-menus
Add_dependency run libSM
Add_dependency run libICE
Add_dependency run libX11
Add_dependency run metacity
Add_dependency run libXcursor
Add_dependency run libXi
Add_dependency run dbus-glib
Add_dependency run dbus-libs
Add_dependency run libXft
Add_dependency run libXrender
Add_dependency run libunique
Add_dependency run librsvg
Add_dependency run evolution-data-server
Add_dependency run libsoup
Add_dependency run libgnomekbd
Add_dependency run libxklavier

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build gnome-doc-utils
Add_dependency build GConf-devel
Add_dependency build libxml2-devel
Add_dependency build gnome-desktop-devel
Add_dependency build gtk+-devel
Add_dependency build startup-notification-devel
Add_dependency build atk-devel
Add_dependency build glib-devel
Add_dependency build pango-devel
Add_dependency build cairo-devel
Add_dependency build freetype-devel
Add_dependency build fontconfig-devel
Add_dependency build gnome-menus-devel
Add_dependency build libSM-devel
Add_dependency build libICE-devel
Add_dependency build libX11-devel
Add_dependency build metacity-devel
Add_dependency build libXcursor-devel
Add_dependency build libXi-devel
Add_dependency build dbus-glib-devel
Add_dependency build dbus-devel
Add_dependency build libXft-devel
Add_dependency build libXrender-devel
Add_dependency build libunique-devel
Add_dependency build librsvg-devel
Add_dependency build evolution-data-server-devel
Add_dependency build libsoup-devel
Add_dependency build libgnomekbd-devel
Add_dependency build libxklavier-devel
Add_dependency build gnome-settings-daemon

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

post_install()
{
	rm -f ${DESTDIR}//usr/share/applications/mimeinfo.cache
	mv ${DESTDIR}/usr/share/pkgconfig/* ${DESTDIR}/usr/lib/pkgconfig
}
