# HG changeset patch # User Hans-G?nter Theisgen # Date 1585840441 -3600 # Node ID 51c5bf425b0783a0ff847500ad618d2cc776b9e2 # Parent 92d05037c8674b936bb6c748f3d58ce342a3be91 updated powertop (2.0 -> 2.11) diff -r 92d05037c867 -r 51c5bf425b07 powertop/receipt --- a/powertop/receipt Thu Apr 02 15:23:47 2020 +0100 +++ b/powertop/receipt Thu Apr 02 16:14:01 2020 +0100 @@ -1,34 +1,39 @@ # SliTaz package receipt. PACKAGE="powertop" -VERSION="2.0" +VERSION="2.11" CATEGORY="system-tools" -SHORT_DESC="Utility designed to measure and explain a computer's electrical power consumption" +TAGS="power-management" +SHORT_DESC="Utility designed to measure and explain a computer's electrical power consumption." MAINTAINER="domcox@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.lesswatts.org/projects/powertop/" -WGET_URL="https://01.org/powertop/sites/default/files/downloads/$TARBALL" -TAGS="power-management" -DEPENDS="ncursesw pciutils libnl zlib gcc-lib-base" -BUILD_DEPENDS="acl gettext ncursesw-dev wget autoconf automake libtool \ -pciutils-dev libnl-dev zlib-dev gettext diffutils file" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/fenrus75/$PACKAGE/archive/v$VERSION.tar.gz" + +DEPENDS="gcc83-lib-base libnl ncursesw pciutils zlib" +BUILD_DEPENDS="acl autoconf automake diffutils file gcc83 gettext libnl-dev + libtool ncursesw-dev pciutils-dev zlib-dev" # Rules to configure and make the package. compile_rules() { - cd $src sed -i 's/AC_PROG_LIBTOOL/AC_PROG_MKDIR_P\n&/' configure.ac sed -i 's/(mkdir_p)/(MKDIR_P)/' po/Makefile.in.in - ./autogen.sh - ./configure && make && make install + cp $stuff/version $src/scripts + + ./autogen.sh && + ./configure \ + CC=gcc-83 \ + CXX=g++-83 && + make && + make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr - cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/sbin $fs/usr } - diff -r 92d05037c867 -r 51c5bf425b07 powertop/stuff/version --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/powertop/stuff/version Thu Apr 02 16:14:01 2020 +0100 @@ -0,0 +1,7 @@ +#!/bin/sh + +LONG="RUN-VERSION-SCRIPT-IN-GIT-REPOSITORY-ONLY" +SHORT=\"$LONG\" + +echo $LONG > version-long +echo $SHORT > version-short