wok annotate powertop/receipt @ rev 24983
Up xcursor-comix (0.9.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 16:45:21 2022 +0000 (2022-05-08) |
parents | 5ea0ce1cecc0 |
children | 962c37121e05 |
rev | line source |
---|---|
domcox@1252 | 1 # SliTaz package receipt. |
domcox@1252 | 2 |
domcox@1252 | 3 PACKAGE="powertop" |
Hans-G?nter@23444 | 4 VERSION="2.11" |
domcox@1252 | 5 CATEGORY="system-tools" |
Hans-G?nter@23444 | 6 TAGS="power-management" |
Hans-G?nter@23444 | 7 SHORT_DESC="Utility designed to measure and explain a computer's electrical power consumption." |
domcox@3474 | 8 MAINTAINER="domcox@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
domcox@1252 | 10 WEB_SITE="http://www.lesswatts.org/projects/powertop/" |
domcox@1252 | 11 |
Hans-G?nter@23444 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23444 | 13 WGET_URL="https://github.com/fenrus75/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@23444 | 14 |
Hans-G?nter@23444 | 15 DEPENDS="gcc83-lib-base libnl ncursesw pciutils zlib" |
Hans-G?nter@23444 | 16 BUILD_DEPENDS="acl autoconf automake diffutils file gcc83 gettext libnl-dev |
Hans-G?nter@23444 | 17 libtool ncursesw-dev pciutils-dev zlib-dev" |
pascal@13411 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24299 | 21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
domcox@1252 | 25 # Rules to configure and make the package. |
domcox@1252 | 26 compile_rules() |
domcox@1252 | 27 { |
Hans-G?nter@23445 | 28 # sed -i 's/AC_PROG_LIBTOOL/AC_PROG_MKDIR_P\n&/' configure.ac |
Hans-G?nter@23445 | 29 # sed -i 's/(mkdir_p)/(MKDIR_P)/' po/Makefile.in.in |
Hans-G?nter@23444 | 30 cp $stuff/version $src/scripts |
Hans-G?nter@23444 | 31 |
Hans-G?nter@23444 | 32 ./autogen.sh && |
Hans-G?nter@23444 | 33 ./configure \ |
Hans-G?nter@23444 | 34 CC=gcc-83 \ |
Hans-G?nter@23444 | 35 CXX=g++-83 && |
Hans-G?nter@23444 | 36 make && |
Hans-G?nter@23444 | 37 make install |
domcox@1252 | 38 } |
domcox@1252 | 39 |
domcox@1252 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1252 | 41 genpkg_rules() |
domcox@1252 | 42 { |
domcox@1252 | 43 mkdir -p $fs/usr |
Hans-G?nter@23444 | 44 cp -a $install/usr/sbin $fs/usr |
domcox@1252 | 45 } |