summaryrefslogtreecommitdiff
path: root/community-testing/acpitool/PKGBUILD
blob: d9b07998804451597d63b7319e14b96b94f35c5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 57685 2011-11-01 09:10:22Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gerhard Brauer <gerhard.brauer@web.de>
# Contributor: Milosz Piglas <archeofuture@gmail.com>

pkgname=acpitool
pkgver=0.5.1
pkgrel=4
pkgdesc="ACPI client - replacement for apm tool"
url="http://sourceforge.net/projects/acpitool/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gcc-libs')
source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2
	linux-3.0.patch
	sysfs-battery.patch)
md5sums=('9e4ec55201be0be71ffbc56d38b42b57'
         'eb149edb32be6cdf20a7d16beb3e9f70'
         '8211c37dbf888b76388699b7c6098503')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 <$srcdir/linux-3.0.patch
  patch -p1 <$srcdir/sysfs-battery.patch
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make prefix="$pkgdir/usr" install
}