#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=gnome-power-manager pkgver=3.2.1 zenver=72 pkgrel=1 arch=i686 source=("http://ftp.acc.umu.se/pub/GNOME/sources/gnome-power-manager/3.2/gnome-power-manager-$pkgver.tar.bz2") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=www.gnome.org options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') doinst() { # update rarian database if [ -x usr/bin/rarian-sk-update ]; then usr/bin/rarian-sk-update 1> /dev/null 2> /dev/null fi # update desktop entries if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database 1> /dev/null 2> /dev/null fi # update hicolor icons if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then rm -f usr/share/icons/hicolor/icon-theme.cache fi usr/bin/gtk-update-icon-cache -f -q usr/share/icons/hicolor 1>/dev/null 2>/dev/null # glib2 compile schemas if [ -x usr/bin/glib-compile-schemas ]; then usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gnome-power-manager - A power manager for the GNOME desktop" "GNOME Power Manager is a GNOME session daemon that acts as a policy" "agent on top of the Project Utopia stack, which includes the kernel," "hotplug, udev, and HAL. GNOME 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 sed -e 's:@HAVE_DOCBOOK2MAN_TRUE@.*::' -i man/Makefile.in ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-static make || return 1 make install DESTDIR=$startdir/pkg rm -rf $startdir/pkg/usr/man }