[arch-commits] Commit in ibam/trunk (PKGBUILD ibam-0.5.2-sysfs.patch)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon Nov 11 19:51:15 UTC 2013
Date: Monday, November 11, 2013 @ 20:51:15
Author: spupykin
Revision: 100845
upgpkg: ibam 0.5.2-7
upd
Modified:
ibam/trunk/PKGBUILD
ibam/trunk/ibam-0.5.2-sysfs.patch
------------------------+
PKGBUILD | 15 ++++++++++-----
ibam-0.5.2-sysfs.patch | 12 ++++++------
2 files changed, 16 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-11-11 19:30:46 UTC (rev 100844)
+++ PKGBUILD 2013-11-11 19:51:15 UTC (rev 100845)
@@ -5,7 +5,7 @@
pkgname=ibam
pkgver=0.5.2
-pkgrel=6
+pkgrel=7
pkgdesc="An intelligent battery monitor"
arch=('i686' 'x86_64')
url="http://ibam.sourceforge.net/"
@@ -15,19 +15,24 @@
optdepends=('gnuplot: graphs support')
install="ibam.install"
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
- 03acpi-check.dpatch)
+ 03acpi-check.dpatch
+ ibam-0.5.2-sysfs.patch)
md5sums=('2d5222ff504dd19e7c1ea8acc2f13cf5'
- '2f27fc97932bd59cabacbad063a13f0e')
+ '2f27fc97932bd59cabacbad063a13f0e'
+ '2a50027f73276d91555105b713687a4d')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
sed -i \
-e "s|/local/bin|/bin|g" \
-e "s|^CFLAGS=-O3|CFLAGS=${CFLAGS}|g" \
Makefile
patch -p1 <$srcdir/03acpi-check.dpatch
+ patch -p1 <$srcdir/ibam-0.5.2-sysfs.patch
+}
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
make
}
Modified: ibam-0.5.2-sysfs.patch
===================================================================
--- ibam-0.5.2-sysfs.patch 2013-11-11 19:30:46 UTC (rev 100844)
+++ ibam-0.5.2-sysfs.patch 2013-11-11 19:51:15 UTC (rev 100845)
@@ -1,16 +1,16 @@
-diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.my/ibam.inl
---- ibam-0.5.2/ibam.inl 2009-03-09 16:53:20.000000000 +0000
-+++ ibam-0.5.2.my/ibam.inl 2011-03-24 19:41:32.000000000 +0000
+diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.q/ibam.inl
+--- ibam-0.5.2/ibam.inl 2009-03-09 19:53:20.000000000 +0300
++++ ibam-0.5.2.q/ibam.inl 2013-11-11 23:45:39.197066574 +0400
@@ -959,7 +959,13 @@
acpi.close();
apm = new acpi_status();
} else {
-+ sysfs.open((sysfs_path+"/BAT0/charge_full").c_str());
+ sysfs.open((sysfs_path+"/BAT0/present").c_str());
+ if(!sysfs.is_open()) {
- sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
++ sysfs.open((sysfs_path+"/BAT1/present").c_str());
+ }
+ if(!sysfs.is_open()) {
-+ sysfs.open((sysfs_path+"/BAT2/charge_full").c_str());
++ sysfs.open((sysfs_path+"/BAT2/present").c_str());
+ }
if(sysfs.is_open()) {
#ifdef IBAM_DEBUG
More information about the arch-commits
mailing list