diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ibam/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ibam/PKGBUILD')
-rw-r--r-- | community/ibam/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/ibam/PKGBUILD b/community/ibam/PKGBUILD new file mode 100644 index 000000000..6f72fb3dc --- /dev/null +++ b/community/ibam/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 65562 2012-02-21 08:57:40Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> +# Contributor: Penguin <TGates81.at.gmail.dot.com> + +pkgname=ibam +pkgver=0.5.2 +pkgrel=5 +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 +} |