#Packager: George Vlahavas pkgname=mate-control-center pkgver=20120329 pkgrel=2gv source=("http://pub.mate-desktop.org/releases/1.2/mate-control-center-$pkgver.tar.xz" "themes.patch" "help.patch" "preferred_apps.patch" "no_custom_items.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") options=('noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x usr/bin/scrollkeeper-update ]; then usr/bin/scrollkeeper-update > /dev/null 2>&1 fi # update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mate-control-center (utilities to configure the MATE desktop)" "This package contains configuration applets for the MATE desktop," "allowing to set accessibility configuration, desktop fonts, keyboard" "and mouse properties, sound setup, desktop theme and background, user" "interface properties, screen resolution, and other MATE parameters." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/themes.patch || exit 1 patch -p1 < $startdir/src/help.patch || exit 1 patch -p1 < $startdir/src/preferred_apps.patch || exit 1 patch -p1 < $startdir/src/no_custom_items.patch || exit 1 ./autogen.sh \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-schemas-install \ --disable-scrollkeeper \ --disable-update-mimedb \ --disable-esd \ --disable-static \ --disable-aboutme \ --with-mateconf-source="xml::/etc/mateconf/mateconf.xml.defaults" \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg # Install mateconf schemas in the package export MATECONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/mateconf/mateconf.xml.defaults" if [ -d $startdir/pkg/etc/mateconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/mateconf/mateconf.xml.defaults SCHEMAS=$startdir/pkg/etc/mateconf/schemas for schema in $SCHEMAS/*.schemas; do mateconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/mateconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/mateconf ; find . -type f -exec chmod 644 {} \; ) fi # remove unncessary help files find $startdir/pkg/usr/share/mate/help/mate-control-center/* -maxdepth 0 -type d ! -name C -exec rm -rf {} \; }