summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/pm-utils/PKGBUILD
blob: 0ca060c1d049c870c420e82bcd19ec00c73b2d05 (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
#$Id: PKGBUILD 7546 2008-08-02 21:35:07Z jgc $
#Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=pm-utils
pkgver=1.1.2.4
pkgrel=1
pkgdesc="Utilities and scripts for power management"
arch=('i686' 'x86_64')
url="http://pm-utils.freedesktop.org"
license=('GPL')
depends=('glibc' 'vbetool' 'procps')
makedepends=('xmlto')
install=pm-utils.install
source=(http://pm-utils.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
	service.patch
	11netcfg)
md5sums=('5aa6d338fb8172f1826a1b08ae601a42'
         '3e170a6c7ae7d9110f95bab54235c089'
         '9839687c8787d99fd4ff36aa3238c27b')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  patch -Np0 -i ${startdir}/src/service.patch || return 1
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1

  #Install additional hooks
  install -m755 ${startdir}/src/11netcfg ${startdir}/pkg/usr/lib/pm-utils/sleep.d/11netcfg || return 1
}