mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 01:47:16 +08:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# $Id: PKGBUILD 62329 2010-01-07 16:47:28Z thayer $
|
|
# Maintainer: Thayer Williams <thayer@archlinux.org>
|
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
|
|
|
pkgname=pm-utils
|
|
pkgver=1.2.6.1
|
|
pkgrel=4
|
|
pkgdesc="Utilities and scripts for suspend and hibernate power management"
|
|
arch=('i686' 'x86_64')
|
|
url="http://pm-utils.freedesktop.org"
|
|
license=('GPL')
|
|
depends=('bash' 'procps' 'vbetool')
|
|
makedepends=('xmlto')
|
|
source=(http://pm-utils.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
|
|
11netcfg
|
|
daemons.patch
|
|
nouveau.patch)
|
|
md5sums=('ddbb73b5fd1e5a2c77ad3ce537a0260c'
|
|
'9839687c8787d99fd4ff36aa3238c27b'
|
|
'7be3f7460569d5a382474abd7f7b53fb'
|
|
'6300409fcc96d70fd2a2e2efeff19f79')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# temp fix for nouveau power management--will be fixed in next release
|
|
patch -Np1 -i ${srcdir}/nouveau.patch || return 1
|
|
|
|
# make sure Arch Linux daemons are properly handled
|
|
patch -Np1 -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"
|
|
}
|