updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / apmd / PKGBUILD
blob32c6521f911386feeb44cdb2936f3534a00b6459
1 # $Id: PKGBUILD 2304 2008-05-31 05:00:40Z paul $
2 # Maintainer: Zerial <fernando@zerial.org>
3 pkgname=apmd
4 pkgver=3.0.2
5 pkgrel=6
6 pkgdesc="Set of tools for managing notebook power consumption"
7 depends=('glibc')
8 makedepends=('libxaw')
9 backup=('etc/apmd_proxy')
10 arch=(i686 x86_64)
11 license=('GPL2')
12 url="http://alumnit.ca/~apenwarr/apmd/"
13 source=(http://alumnit.ca/~apenwarr/apmd/$pkgname-$pkgver.tar.gz \
14   apmd-$pkgver.patch apmd.rc)
15 md5sums=('23ce275766441c59b6b47c002f9098eb' 'a27ecf771d9dc5d4cf57b9c79972ec46'\
16          'e84ca8f326aeb5b982c1f6585b183d70')
18 build() {
19   cd $startdir/src/$pkgname
20   patch -Np1 -i ../apmd-$pkgver.patch
21   make || return 1
22   mkdir -p $startdir/pkg/{usr,etc}
23   make PREFIX=$startdir/pkg/usr APMD_PROXY_DIR=$startdir/pkg/etc install
24   install -D -m755 ../apmd.rc $startdir/pkg/etc/rc.d/apmd
25   rm -rf $startdir/pkg/usr/man/fr