wok-next annotate pm-utils/receipt @ rev 5164
Up: slitaz-configs (3.2) New Openbox menu
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 25 22:47:40 2010 +0100 (2010-03-25) |
parents | |
children | d511eee1a7fc |
rev | line source |
---|---|
domcox@2655 | 1 # SliTaz package receipt. |
domcox@2655 | 2 |
domcox@2655 | 3 PACKAGE="pm-utils" |
domcox@2655 | 4 VERSION="1.2.5" |
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@2655 | 8 DEPENDS="hal-info" |
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@2655 | 12 |
domcox@2655 | 13 # Rules to configure and make the package. |
domcox@2655 | 14 compile_rules() |
domcox@2655 | 15 { |
domcox@2655 | 16 cd $src |
domcox@2655 | 17 sed -i 's/grep -vxFf/grep -vFf/g' pm/functions.in |
domcox@2655 | 18 ./configure \ |
domcox@2655 | 19 --prefix=/usr \ |
domcox@2655 | 20 --infodir=/usr/share/info \ |
domcox@2655 | 21 --mandir=/usr/share/man \ |
domcox@2655 | 22 $CONFIGURE_ARGS && |
domcox@2655 | 23 make && |
domcox@2655 | 24 make DESTDIR=$PWD/_pkg install |
domcox@2655 | 25 } |
domcox@2655 | 26 |
domcox@2655 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@2655 | 28 genpkg_rules() |
domcox@2655 | 29 { |
domcox@2655 | 30 mkdir -p $fs/usr |
domcox@2655 | 31 cp -a $_pkg/usr/bin $fs/usr |
domcox@2655 | 32 cp -a $_pkg/usr/sbin $fs/usr |
domcox@2655 | 33 cp -a $_pkg/usr/lib $fs/usr |
domcox@2655 | 34 mkdir -p $fs/etc |
domcox@2655 | 35 cp -a $_pkg/usr/etc/pm $fs/etc |
domcox@2655 | 36 # strip -s $fs/usr/bin/* |
domcox@2655 | 37 } |
domcox@2655 | 38 |
domcox@2655 | 39 post_install() |
domcox@2655 | 40 { |
domcox@2655 | 41 rmdir /etc/pm/config.d |
domcox@2655 | 42 rmdir /etc/pm/power.d |
domcox@2655 | 43 rmdir /etc/pm/sleep.d |
domcox@2655 | 44 rmdir /etc/pm |
domcox@2655 | 45 } |