wok-6.x annotate pm-utils/receipt @ rev 8202

imported patch toolchain/ncurses-common.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents b2a645bceafd
children 02bbaa9d12ba
rev   line source
domcox@2655 1 # SliTaz package receipt.
domcox@2655 2
domcox@2655 3 PACKAGE="pm-utils"
domcox@6084 4 VERSION="1.4.1"
domcox@2655 5 CATEGORY="system-tools"
domcox@2655 6 SHORT_DESC="scripts that handle suspend and resume on behalf of HAL."
domcox@2655 7 MAINTAINER="domcox@users.sourceforge.net"
domcox@6084 8 DEPENDS="bash kbd"
domcox@2655 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
domcox@2655 10 WEB_SITE="http://pm-utils.freedesktop.org/"
domcox@2655 11 WGET_URL="http://pm-utils.freedesktop.org/releases/$TARBALL"
domcox@6097 12 TAGS="power-management"
domcox@2655 13
domcox@2655 14 # Rules to configure and make the package.
domcox@2655 15 compile_rules()
domcox@2655 16 {
domcox@2655 17 cd $src
domcox@2655 18 sed -i 's/grep -vxFf/grep -vFf/g' pm/functions.in
domcox@2655 19 ./configure \
domcox@2655 20 --prefix=/usr \
domcox@2655 21 --infodir=/usr/share/info \
domcox@2655 22 --mandir=/usr/share/man \
domcox@2655 23 $CONFIGURE_ARGS &&
domcox@2655 24 make &&
domcox@2655 25 make DESTDIR=$PWD/_pkg install
domcox@2655 26 }
domcox@2655 27
domcox@2655 28 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@2655 29 genpkg_rules()
domcox@2655 30 {
domcox@2655 31 mkdir -p $fs/usr
domcox@2655 32 cp -a $_pkg/usr/bin $fs/usr
domcox@2655 33 cp -a $_pkg/usr/sbin $fs/usr
domcox@2655 34 cp -a $_pkg/usr/lib $fs/usr
domcox@2655 35 mkdir -p $fs/etc
domcox@2655 36 cp -a $_pkg/usr/etc/pm $fs/etc
domcox@2655 37 # strip -s $fs/usr/bin/*
domcox@2655 38 }
domcox@2655 39
domcox@2655 40 post_install()
domcox@2655 41 {
domcox@2655 42 rmdir /etc/pm/config.d
domcox@2655 43 rmdir /etc/pm/power.d
domcox@2655 44 rmdir /etc/pm/sleep.d
domcox@2655 45 rmdir /etc/pm
domcox@2655 46 }