summaryrefslogtreecommitdiffstats
path: root/pm-utils/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'pm-utils/Pkgfile')
-rw-r--r--pm-utils/Pkgfile34
1 files changed, 34 insertions, 0 deletions
diff --git a/pm-utils/Pkgfile b/pm-utils/Pkgfile
new file mode 100644
index 000000000..0da983420
--- /dev/null
+++ b/pm-utils/Pkgfile
@@ -0,0 +1,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}
+}
+