#Packager: George Vlahavas pkgname=mate-power-manager pkgver=1.22.0 _majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"` pkgrel=1slint source=("http://pub.mate-desktop.org/releases/${_majorver}/mate-power-manager-${pkgver}.tar.xz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") options=('noautodotnew' 'nosrcpack') doinst() { # compile schemas if [ -x /usr/bin/glib-compile-schemas ]; then /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mate-power-manager (A power manager for the MATE desktop)" "Mate Power Manager is a mate session daemon that acts as a policy" "agent on top of the Project Utopia stack, which includes the kernel," "hotplug, udev, and HAL. Mate Power Manager listens for HAL events and" "responds with user-configurable reactions. Currently it supports" "UPS's, laptop batteries and AC adapters. Its goal is to be" "architecture neutral and free of polling and other hacks." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 --verbose -R < $startdir/switch-to-use-gettext.patch ./autogen.sh ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-schemas-compile \ --enable-applets \ --disable-strict \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg # fix .desktop files sed -i "/^OnlyShowIn/d" $startdir/pkg/usr/share/applications/*.desktop echo "NotShowIn=KDE;XFCE;" >> $startdir/pkg/usr/share/applications/mate-power-statistics.desktop echo "NotShowIn=KDE;XFCE;" >> $startdir/pkg/usr/share/applications/mate-power-preferences.desktop sed -i "/^NoDisplay=true/d" $startdir/pkg/usr/share/applications/mate-power-statistics.desktop }