wok-6.x view powertop/receipt @ rev 25258
qt5: modified WGET_URL
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 15 07:00:31 2022 +0100 (2022-07-15) |
parents | ac8ca9758df1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="powertop"
4 VERSION="2.14"
5 CATEGORY="system-tools"
6 TAGS="power-management"
7 SHORT_DESC="Utility designed to measure and explain a computer's electrical power consumption."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/fenrus75/powertop"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
15 DEPENDS="gcc83-lib-base libnl ncursesw pciutils zlib"
16 BUILD_DEPENDS="acl automake diffutils gcc83 gettext libnl-dev libtool ncursesw-dev
17 pciutils-dev zlib-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # sed -i 's/AC_PROG_LIBTOOL/AC_PROG_MKDIR_P\n&/' configure.ac
29 # sed -i 's/(mkdir_p)/(MKDIR_P)/' po/Makefile.in.in
31 cp $stuff/version $src/scripts
33 ./autogen.sh &&
34 ./configure \
35 CC=gcc-83 \
36 CXX=g++-83 &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cook_copy_folders sbin
45 }