updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pm-utils-git / PKGBUILD
blob79251637c3fb72c8bc6308a7929e4ef64b37f247
1 # Maintainer: Martti Kühne <mysatyre at gmail dot com>
3 pkgname=pm-utils-git
4 pkgver=20100713
5 pkgrel=1
6 pkgdesc="Utilities and scripts for suspend and hibernate power management"
7 arch=('i686' 'x86_64')
8 url="http://pm-utils.freedesktop.org"
9 license=('GPL')
10 depends=('bash' 'procps' 'vbetool' 'pm-quirks')
11 makedepends=('xmlto' 'docbook-xml' 'docbook-xsl')
12 optdepends=('upower')
13 conflicts=(pm-utils)
14 provides=(pm-utils=1.4.1)
15 source=(11netcfg)
16 md5sums=('9839687c8787d99fd4ff36aa3238c27b')
18 _gitroot=git://anongit.freedesktop.org/git/pm-utils
19 _gitname=pm-utils
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server..."
24   if [ -d $srcdir/$_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   # Copy Latest files to Build Directory
34   cp -rf $srcdir/$_gitname $srcdir/$_gitname-build
35   cd $srcdir/$_gitname-build
37   # Configure Source
38   ./autogen.sh --prefix=/usr \
39       --sysconfdir=/etc \
40       --localstatedir=/var
41   make
42   make DESTDIR="${pkgdir}" install
44   # install additional hooks
45   install -m755 "${srcdir}/11netcfg" "${pkgdir}/usr/lib/pm-utils/sleep.d/"