updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / acpitool / PKGBUILD
blob5837988bbb68c035fe820aece3f97f9ca8d93d45
1 # $Id: PKGBUILD 58301 2011-11-10 17:57:26Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Gerhard Brauer <gerhard.brauer@web.de>
4 # Contributor: Milosz Piglas <archeofuture@gmail.com>
6 pkgname=acpitool
7 pkgver=0.5.1
8 pkgrel=5
9 pkgdesc="ACPI client - replacement for apm tool"
10 url="http://sourceforge.net/projects/acpitool/"
11 arch=('i686' 'x86_64')
12 license=('GPL')
13 depends=('gcc-libs')
14 source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2
15         linux-3.0.patch
16         sysfs-battery.patch)
17 md5sums=('9e4ec55201be0be71ffbc56d38b42b57'
18          'eb149edb32be6cdf20a7d16beb3e9f70'
19          '969fc4929cc215756db27168646c2b7a')
21 build() {
22   cd "$srcdir/$pkgname-$pkgver"
23   patch -p1 <$srcdir/linux-3.0.patch
24   patch -p1 <$srcdir/sysfs-battery.patch
25   ./configure --prefix=/usr
26   make
29 package() {
30   cd "$srcdir/$pkgname-$pkgver"
31   make prefix="$pkgdir/usr" install