mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
33 lines
988 B
Bash
33 lines
988 B
Bash
#$Id: PKGBUILD 35237 2009-04-11 15:54:33Z thayer $
|
|
#Maintainer: Thayer Williams <thayer@archlinux.org>
|
|
|
|
pkgname=pm-utils
|
|
pkgver=1.2.5
|
|
pkgrel=1
|
|
pkgdesc="Utilities and scripts for suspend and hibernate power management"
|
|
arch=('i686' 'x86_64')
|
|
url="http://pm-utils.freedesktop.org"
|
|
license=('GPL')
|
|
depends=('glibc' 'vbetool' 'procps')
|
|
makedepends=('xmlto')
|
|
source=(http://pm-utils.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
|
|
11netcfg
|
|
daemons.patch)
|
|
md5sums=('f69db402e1869321cac72ffd2f77fa99'
|
|
'9839687c8787d99fd4ff36aa3238c27b'
|
|
'8b26b51f0c1f3330bb4f9f0ff57f4717')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
# make sure Arch Linux daemons are properly handled
|
|
patch -Np0 -i $srcdir/daemons.patch || return 1
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
|
make || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
|
|
# install additional hooks
|
|
install -m755 $srcdir/11netcfg $pkgdir/usr/lib/pm-utils/sleep.d/11netcfg
|
|
}
|
|
|