wok-6.x view pm-utils/receipt @ rev 15965
xorg-libXau: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 24 15:44:41 2014 +0100 (2014-02-24) |
parents | fa389f5b7eb9 |
children | 54a5f5c453da |
line source
1 # SliTaz package receipt.
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="domcox@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://pm-utils.freedesktop.org/"
11 WGET_URL="http://pm-utils.freedesktop.org/releases/$TARBALL"
12 CONFIG_FILES="/etc/pm"
13 TAGS="power-management"
15 DEPENDS="bash kbd"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # workaround grep -x not implemented in busybox
22 echo -n "Applying grep -x patch.."
23 patch -p1 pm/functions.in $stuff/grep-x.patch > /dev/null \
24 && echo done. || echo failed.
25 # remove acoustic management not implemented in busybox
26 echo -n "Applying harddrive patch.."
27 patch -p1 pm/power.d/harddrive $stuff/harddrive.patch > /dev/null \
28 && echo done. || echo failed.
29 # build
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 # main
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/lib/pm-utils $fs/usr/lib
47 # sysconfig
48 mkdir -p $fs/etc
49 cp -a $install/etc/pm $fs/etc
51 # remove incompatible hooks
52 echo "remove incompatible hooks"
53 # NetworkManager hook
54 rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager
55 # grub hook (Redhat specific)
56 rm -f $fs/usr/lib/pm-utils/sleep.d/01grub
57 # readahead hook (not busybox compliant)
58 rm -f $fs/usr/lib/pm-utils/power.d/readahead
59 # sata_alpm (causes disk errors on many hardware)
60 rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm
62 # add video quirks
63 echo -n "Add video quirks"
64 cp -a $stuff/video-quirks $fs/usr/lib/pm-utils
65 status
66 }