# $Id: PKGBUILD 1332 2009-08-16 10:25:55Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Gerhard Brauer # Contributor: Milosz Piglas pkgname=acpitool pkgver=0.5.1 pkgrel=1 pkgdesc="ACPI client - replacement for apm tool" url="http://sourceforge.net/projects/acpitool/" arch=('i686' 'x86_64') license=('GPL') source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2 \ kernel_2.6.21.patch) depends=(libstdc++5) md5sums=('9e4ec55201be0be71ffbc56d38b42b57' 'b55eb498a323ca81ad5abe73cc608912') build() { cd $startdir/src/$pkgname-$pkgver # patch -p1 -i ../kernel_2.6.21.patch ./configure --prefix=/usr make || return 1 make prefix=$startdir/pkg/usr install }