From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/ibam/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 community/ibam/PKGBUILD (limited to 'community/ibam/PKGBUILD') diff --git a/community/ibam/PKGBUILD b/community/ibam/PKGBUILD new file mode 100644 index 000000000..bf9cf289c --- /dev/null +++ b/community/ibam/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 43317 2011-03-24 19:43:55Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: Kessia 'even' Pinheiro +# Contributor: Penguin + +pkgname=ibam +pkgver=0.5.2 +pkgrel=4 +pkgdesc="An intelligent battery monitor" +arch=('i686' 'x86_64') +url="http://ibam.sourceforge.net/" +license=('GPL') +depends=('gcc-libs') +makedepends=('sed' 'make') +optdepends=('gnuplot: graphs support') +install="ibam.install" +source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" + ibam-0.5.2-sysfs.patch) +md5sums=('2d5222ff504dd19e7c1ea8acc2f13cf5' + 'c3aafebd5ad9159c89f71beab4a0f414') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + install -m0755 -d ${pkgdir}/usr/bin + + sed -i \ + -e "s|/local/bin|/bin|g" \ + -e "s|^CFLAGS=-O3|CFLAGS=${CFLAGS}|g" \ + Makefile + patch -p1 <$srcdir/ibam-0.5.2-sysfs.patch + + make + install -m0755 -D ${srcdir}/${pkgname}-${pkgver}/ibam ${pkgdir}/usr/bin/ibam +} -- cgit v1.2.3-54-g00ecf