wok-next diff pm-utils/receipt @ rev 20837
lua: add SHA1sum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sun Jun 17 19:28:49 2018 +0000 (2018-06-17) |
parents | 757d032c55c7 |
children | a3c581bf52b8 |
line diff
1.1 --- a/pm-utils/receipt Fri Mar 30 19:31:50 2018 +0300 1.2 +++ b/pm-utils/receipt Sun Jun 17 19:28:49 2018 +0000 1.3 @@ -7,47 +7,43 @@ 1.4 MAINTAINER="domcox@slitaz.org" 1.5 LICENSE="GPL2" 1.6 WEB_SITE="http://pm-utils.freedesktop.org/" 1.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/pm-utils.html" 1.8 1.9 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.10 -WGET_URL="http://pm-utils.freedesktop.org/releases/$TARBALL" 1.11 +WGET_URL="https://pm-utils.freedesktop.org/releases/$TARBALL" 1.12 + 1.13 +BUILD_DEPENDS="symlinks" 1.14 1.15 compile_rules() { 1.16 - # workaround grep -x not implemented in busybox 1.17 - patch -p1 pm/functions.in $stuff/grep-x.patch 1.18 - # remove acoustic management not implemented in busybox 1.19 - patch -p1 pm/power.d/harddrive $stuff/harddrive.patch 1.20 - 1.21 ./configure $CONFIGURE_ARGS && 1.22 make && 1.23 - make DESTDIR=$DESTDIR install 1.24 + make DESTDIR=$DESTDIR install || return 1 1.25 + 1.26 + # add video quirks 1.27 + cp -r $stuff/video-quirks $install/usr/lib/pm-utils/ 1.28 + 1.29 + fix symlinks 1.30 + 1.31 + ln -s pm-action.8 man/pm-suspend.8 1.32 + ln -s pm-action.8 man/pm-hibernate.8 1.33 + ln -s pm-action.8 man/pm-suspend-hybrid.8 1.34 + cook_pick_manpages man/*.1 man/*.8 1.35 } 1.36 1.37 genpkg_rules() { 1.38 - # main 1.39 - mkdir -p $fs/usr/lib 1.40 - cp -a $install/usr/bin $fs/usr 1.41 - cp -a $install/usr/sbin $fs/usr 1.42 - cp -a $install/usr/lib/pm-utils $fs/usr/lib 1.43 - 1.44 - # sysconfig 1.45 - mkdir -p $fs/etc 1.46 - cp -a $install/etc/pm $fs/etc 1.47 - 1.48 - # remove incompatible hooks 1.49 - # NetworkManager hook 1.50 + copy @std 1.51 + # remove incompatible hooks: 1.52 + # NetworkManager hook 1.53 rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager 1.54 - # grub hook (Redhat specific) 1.55 + # grub hook (Redhat specific) 1.56 rm -f $fs/usr/lib/pm-utils/sleep.d/01grub 1.57 - # readahead hook (not busybox compliant) 1.58 + # readahead hook (not busybox compliant) 1.59 rm -f $fs/usr/lib/pm-utils/power.d/readahead 1.60 - # sata_alpm (causes disk errors on many hardware) 1.61 + # sata_alpm (causes disk errors on many hardware) 1.62 rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm 1.63 1.64 - # add video quirks 1.65 - cp -a $stuff/video-quirks $fs/usr/lib/pm-utils 1.66 - 1.67 DEPENDS="bash kbd" 1.68 - CONFIG_FILES="/etc/pm" 1.69 + CONFIG_FILES="/etc/pm/" 1.70 TAGS="power-management" 1.71 } 1.72