wok view pm-utils/receipt @ rev 9745
Fixed binutils to work with tazwok. Need to cd $src before mkdir -p ../binutils-build. This will not chanage anything with cookutils.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 09 22:07:48 2011 +0000 (2011-05-09) |
parents | 87c39df98536 |
children | ca5b268ea81d |
line source
1 # SliTaz package receipt.
3 PACKAGE="pm-utils"
4 VERSION="1.4.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="scripts that handle suspend and resume on behalf of HAL."
7 MAINTAINER="domcox@users.sourceforge.net"
8 DEPENDS="bash kbd"
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 TAGS="power-management"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i 's/grep -vxFf/grep -vFf/g' pm/functions.in
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/sbin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
35 mkdir -p $fs/etc
36 cp -a $_pkg/usr/etc/pm $fs/etc
37 }
39 post_install()
40 {
41 rmdir /etc/pm/config.d
42 rmdir /etc/pm/power.d
43 rmdir /etc/pm/sleep.d
44 rmdir /etc/pm
45 }