pkgname=mate-power-manager pkgver=2011.12.01 pkgrel=1 pkgdesc="Session daemon that makes it easy to manage your laptop or desktop system for Mate Desktop" arch=('i686' 'x86_64') license=('GPL') depends=('libmatenotify' 'libunique' 'libcanberra' 'hicolor-icon-theme' 'upower' 'libmatekeyring') makedepends=('intltool' 'pkgconfig' 'mate-doc-utils' 'mate-panel' 'mate-control-center') options=('!emptydirs') install=mate-power-manager.install url="http://matsusoft.com.ar/projects" groups=('mate-extras') source=(http://sourceforge.net/projects/matede/files/${pkgver}/${pkgname}.tar.gz/download) sha256sums=('2a48bf5930740a7dfa3a380a215b55ef2975256f75ada45915c1f210641ff3bb') build() { cd "${srcdir}/${pkgname}" ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/${pkgname} \ --disable-scrollkeeper || return 1 #--enable-applets #--with-dbus-services=/usr/share/dbus-1/services \ #--with-dpms-ext \ make || return 1 } package() { cd "$srcdir/$pkgname" make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1 install -m755 -d "${pkgdir}/usr/share/mateconf/schemas" mateconf-merge-schema "${pkgdir}/usr/share/mateconf/schemas/${pkgname}.schemas" --domain ${pkgname} ${pkgdir}/etc/mateconf/schemas/*.schemas || return 1 rm -f ${pkgdir}/etc/mateconf/schemas/*.schemas }