# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=2.91.90
distfiles="${GNOME_SITE}/$pkgname/2.91/$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 --disable-static"
short_desc="GNOME control center"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=563f254a60267be8326f5168bc2cf4c4ca6308f3d5231327bbfc3d7ffc44e813
long_desc="
 This packages the control center for the GNOME desktop."

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

# XXX NetworkManager-0.9 support
Add_dependency run glibc
Add_dependency run libxml2
Add_dependency run gnome-desktop
Add_dependency run gtk+3
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 gdk-pixbuf
Add_dependency run libpng
Add_dependency run upower
Add_dependency run dbus-glib
Add_dependency run dbus-libs
Add_dependency run libXi
Add_dependency run libgnomekbd
Add_dependency run libxklavier
Add_dependency run GConf
Add_dependency run libgtop
Add_dependency run libcanberra
Add_dependency run libpulseaudio
Add_dependency run polkit
Add_dependency run gnome-menus

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build gnome-doc-utils
Add_dependency build libxml2-devel
Add_dependency build gnome-desktop-devel
Add_dependency build gtk+3-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 gdk-pixbuf-devel
Add_dependency build libpng-devel
Add_dependency build upower-devel
Add_dependency build dbus-glib-devel
Add_dependency build dbus-devel
Add_dependency build libXi-devel
Add_dependency build libgnomekbd-devel
Add_dependency build libxklavier-devel
Add_dependency build GConf-devel
Add_dependency build libgtop-devel
Add_dependency build libcanberra-devel
Add_dependency build pulseaudio-devel
Add_dependency build polkit-devel
Add_dependency build gnome-menus-devel

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
}
