wok-4.x rev 1252
Add powertop
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Tue Aug 12 22:20:10 2008 +0200 (2008-08-12) |
parents | 2cfec27e2d9c |
children | 4784eb863cc5 |
files | powertop/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/powertop/receipt Tue Aug 12 22:20:10 2008 +0200 1.3 @@ -0,0 +1,38 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="powertop" 1.7 +VERSION="1.10" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Utility designed to measure and explain a computer's electrical power consumption" 1.10 +MAINTAINER="domcox@users.sourceforge.net" 1.11 +DEPENDS="ncurses" 1.12 +BUILD_DEPENDS="ncurses-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://www.lesswatts.org/projects/powertop/" 1.15 +WGET_URL="http://www.lesswatts.org/projects/powertop/download/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 +# switch from ncursesw to ncurses 1.22 + sed -e 's/lncursesw/lncurses/g' Makefile > Makefile.slitaz 1.23 + cp Makefile.slitaz Makefile 1.24 + 1.25 + make 1.26 + make DESTDIR=$PWD/_pkg install 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr 1.33 + cp -a $_pkg/usr/bin $fs/usr 1.34 + strip -s $fs/usr/bin/* 1.35 + mkdir -p $fs/usr/share/locale 1.36 + for LANG in de es it fr 1.37 + do 1.38 + cp -a $_pkg/usr/share/locale/$LANG* $fs/usr/share/locale 1.39 + done 1.40 +} 1.41 +