[arch-commits] CVS update of extra/xfce4/xfce4-battery-plugin (PKGBUILD)

Tobias Kieslich tobias at archlinux.org
Mon Apr 30 19:35:54 UTC 2007


    Date: Monday, April 30, 2007 @ 15:35:54
  Author: tobias
    Path: /home/cvs-extra/extra/xfce4/xfce4-battery-plugin

Modified: PKGBUILD (1.14 -> 1.15)

fix the battery plugin for kernel 2.6.21


----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)


Index: extra/xfce4/xfce4-battery-plugin/PKGBUILD
diff -u extra/xfce4/xfce4-battery-plugin/PKGBUILD:1.14 extra/xfce4/xfce4-battery-plugin/PKGBUILD:1.15
--- extra/xfce4/xfce4-battery-plugin/PKGBUILD:1.14	Mon Apr 16 03:38:16 2007
+++ extra/xfce4/xfce4-battery-plugin/PKGBUILD	Mon Apr 30 15:35:54 2007
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD,v 1.14 2007/04/16 07:38:16 tobias Exp $
+# $Id: PKGBUILD,v 1.15 2007/04/30 19:35:54 tobias Exp $
 # Maintainer: aurelien <aurelien at archlinux.org>
 # Contributor: Aurelien Foret <orelien at chez.com>
 pkgname=xfce4-battery-plugin
 pkgver=0.5.0
-pkgrel=3
+pkgrel=4
 pkgdesc="A battery monitor plugin for the Xfce panel"
 arch=(i686 x86_64)
 url="http://xfce-goodies.berlios.de/"
@@ -17,6 +17,14 @@
 
 build() {
   cd ${startdir}/src/${pkgname}-${pkgver}
+ # the purpose of this code is to check if there is an acpi system installed at all
+ # but since the code also exits when no /proc/acpi/battery directory is there we are safe
+  ex panel-plugin/libacpi.c << EOC > /dev/null 2>&1
+/proc.acpi.info
+d10
+w
+q
+EOC
   ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
     --localstatedir=/var --disable-static
   make || return 1




More information about the arch-commits mailing list