wok-next view pm-utils/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pm-utils"
4 VERSION="1.4.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Collection of scripts that handle suspend and resume"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pm-utils.freedesktop.org/wiki/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/pm-utils.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://pm-utils.freedesktop.org/releases/$TARBALL"
15 BUILD_DEPENDS="symlinks"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 make &&
20 make DESTDIR=$install install || return 1
22 # add video quirks
23 cp -r $stuff/video-quirks $install/usr/lib/pm-utils/
25 fix symlinks
27 ln -s pm-action.8 man/pm-suspend.8
28 ln -s pm-action.8 man/pm-hibernate.8
29 ln -s pm-action.8 man/pm-suspend-hybrid.8
30 cook_pick_manpages man/*.1 man/*.8
31 }
33 genpkg_rules() {
34 copy @std
35 # remove incompatible hooks:
36 # NetworkManager hook
37 rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager
38 # grub hook (Redhat specific)
39 rm -f $fs/usr/lib/pm-utils/sleep.d/01grub
40 # readahead hook (not busybox compliant)
41 rm -f $fs/usr/lib/pm-utils/power.d/readahead
42 # sata_alpm (causes disk errors on many hardware)
43 rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm
45 DEPENDS="bash kbd"
46 CONFIG_FILES="/etc/pm/"
47 TAGS="power-management"
48 }
50 pre_remove() {
51 [ -s "$1/etc/slim.conf" ] &&
52 sed -i 's|.*/usr/sbin/pm-suspend|#&|' "$1/etc/slim.conf"
53 :
54 }
56 post_install() {
57 [ -s "$1/etc/slim.conf" ] &&
58 sed -i 's|^#suspend_cmd.*|suspend_cmd /usr/sbin/pm-suspend|' \
59 "$1/etc/slim.conf"
60 :
61 }