# HG changeset patch # User Dominique Corbex # Date 1218572410 -7200 # Node ID 345c3a4577f1b34cf68e525c2de8a05aa7ef0ac0 # Parent 2cfec27e2d9cc1feb70877f31a46cd908e503b66 Add powertop diff -r 2cfec27e2d9c -r 345c3a4577f1 powertop/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/powertop/receipt Tue Aug 12 22:20:10 2008 +0200 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="powertop" +VERSION="1.10" +CATEGORY="system-tools" +SHORT_DESC="Utility designed to measure and explain a computer's electrical power consumption" +MAINTAINER="domcox@users.sourceforge.net" +DEPENDS="ncurses" +BUILD_DEPENDS="ncurses-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.lesswatts.org/projects/powertop/" +WGET_URL="http://www.lesswatts.org/projects/powertop/download/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src +# switch from ncursesw to ncurses + sed -e 's/lncursesw/lncurses/g' Makefile > Makefile.slitaz + cp Makefile.slitaz Makefile + + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + strip -s $fs/usr/bin/* + mkdir -p $fs/usr/share/locale + for LANG in de es it fr + do + cp -a $_pkg/usr/share/locale/$LANG* $fs/usr/share/locale + done +} +