wok annotate tlp/receipt @ rev 24067
linld: add cpu detection
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 05 15:05:16 2021 +0000 (2021-07-05) |
parents | fab664cb3963 |
children | 8c8f0cd75a42 |
rev | line source |
---|---|
pascal@20256 | 1 # SliTaz package receipt. |
pascal@20256 | 2 |
pascal@20256 | 3 PACKAGE="tlp" |
Hans-G?nter@23704 | 4 VERSION="1.3.1" |
pascal@20256 | 5 CATEGORY="misc" |
Hans-G?nter@22038 | 6 SHORT_DESC="Advanced Power Management for Linux." |
pascal@20256 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20256 | 8 LICENSE="GPL2 GPL3" |
Hans-G?nter@22038 | 9 WEB_SITE="https://linrunner.de/en/tlp/tlp.html" |
Hans-G?nter@22038 | 10 |
pascal@20256 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20256 | 12 WGET_URL="https://github.com/linrunner/TLP/archive/$VERSION.tar.gz" |
pascal@20256 | 13 |
pascal@24055 | 14 current_version() |
pascal@24055 | 15 { |
pascal@24055 | 16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 18 } |
pascal@24055 | 19 |
pascal@20256 | 20 # Rules to configure and make the package. |
pascal@20256 | 21 compile_rules() |
pascal@20256 | 22 { |
pascal@20256 | 23 make DESTDIR=$DESTDIR install |
pascal@20256 | 24 } |
pascal@20256 | 25 |
pascal@20256 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20256 | 27 genpkg_rules() |
pascal@20256 | 28 { |
Hans-G?nter@23704 | 29 cp -a $install/* $fs |
pascal@20256 | 30 } |