wok-6.x view powertop/receipt @ rev 24320
Add xsuspend (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 25 18:01:09 2022 +0000 (2022-01-25) |
parents | 5ea0ce1cecc0 |
children | 962c37121e05 |
line source
1 # SliTaz package receipt.
3 PACKAGE="powertop"
4 VERSION="2.11"
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="http://www.lesswatts.org/projects/powertop/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/fenrus75/$PACKAGE/archive/v$VERSION.tar.gz"
15 DEPENDS="gcc83-lib-base libnl ncursesw pciutils zlib"
16 BUILD_DEPENDS="acl autoconf automake diffutils file gcc83 gettext libnl-dev
17 libtool ncursesw-dev 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
30 cp $stuff/version $src/scripts
32 ./autogen.sh &&
33 ./configure \
34 CC=gcc-83 \
35 CXX=g++-83 &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 }