[arch-commits] Commit in xfce4-battery-plugin/trunk (PKGBUILD compile_x86_64.diff)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Oct 31 01:14:27 UTC 2008


    Date: Thursday, October 30, 2008 @ 21:14:27
  Author: andyrtr
Revision: 17557

upgpkg: xfce4-battery-plugin 0.5.1-1
    add a compile fix

Added:
  xfce4-battery-plugin/trunk/compile_x86_64.diff
Modified:
  xfce4-battery-plugin/trunk/PKGBUILD

---------------------+
 PKGBUILD            |    8 ++++++--
 compile_x86_64.diff |   13 +++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-10-31 01:01:36 UTC (rev 17556)
+++ PKGBUILD	2008-10-31 01:14:27 UTC (rev 17557)
@@ -14,11 +14,15 @@
 makedepends=('pkgconfig')
 options=('!libtool')
 install=${pkgname}.install
-source=(http://goodies.xfce.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('d8a666d85bb3c1dd007b547de4dd7037')
+source=(http://goodies.xfce.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+	compile_x86_64.diff)
+md5sums=('d8a666d85bb3c1dd007b547de4dd7037'
+         'd9a927bca032e9b10a04046c154243a1')
 
 build() {
   cd ${startdir}/src/${pkgname}-${pkgver}
+  # fix http://bugzilla.xfce.org/show_bug.cgi?id=4359
+  patch -Np1 -i ${srcdir}/compile_x86_64.diff || return 1
  # 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

Added: compile_x86_64.diff
===================================================================
--- compile_x86_64.diff	                        (rev 0)
+++ compile_x86_64.diff	2008-10-31 01:14:27 UTC (rev 17557)
@@ -0,0 +1,13 @@
+--- xfce4-battery-plugin-0.5.0/panel-plugin/libapm.h.orig	2008-03-18 20:10:58.000000000 +0100
++++ xfce4-battery-plugin-0.5.0/panel-plugin/libapm.h	2008-03-18 20:14:45.000000000 +0100
+@@ -17,8 +17,8 @@
+  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+  */
+ 
+-#include <linux/apm_bios.h>
+ #include <sys/types.h>
++#include <linux/apm_bios.h>
+ 
+ #define APM_PROC   "/proc/apm"
+ #define APM_DEVICE "/dev/apm_bios"
+




More information about the arch-commits mailing list