summaryrefslogtreecommitdiffstats
path: root/pm-utils/Pkgfile
blob: 0da9834205658d1d2d74b99090b06f4030eba933 (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
30
31
32
33
34
# Description: Utilitaires et scripts pour la gestion de l'hibernation
# URL: http://pm-utils.freedesktop.org
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: pm-quirks
# Run on: pm-quirks

name=pm-utils
version=1.4.1
release=1
source=(http://pm-utils.freedesktop.org/releases/$name-$version.tar.gz 
	pm-utils-02-loggin-append.patch
	pm-utils-11-netcfg 
	pm-utils-13-49bluetooth-sync.patch 
	pm-utils-14-disable-sata-alpm.patch )

build() {
	cd $SRC/$name-$version

  	patch -Np1 -i ../pm-utils-02-loggin-append.patch
  	patch -Np1 -i ../pm-utils-13-49bluetooth-sync.patch
  	patch -Np1 -i ../pm-utils-14-disable-sata-alpm.patch

	./configure --prefix=/usr \
      		--sysconfdir=/etc \
      		--localstatedir=/var
  	make
  	make DESTDIR=$PKG install
	
	install -m755 $SRC/pm-utils-11-netcfg $PKG/usr/lib/pm-utils/sleep.d/11netcfg
	rm -f $PKG/usr/lib/pm-utils/sleep.d/55NetworkManager
	rm -f $PKG/usr/lib/pm-utils/power.d/{harddrive,disable_wol}
}