wok annotate tlp/receipt @ rev 25775
luajit, wayland, weston: fix current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 15 16:55:07 2024 +0000 (2 months ago) |
parents | 8c8f0cd75a42 |
children |
rev | line source |
---|---|
pascal@20256 | 1 # SliTaz package receipt. |
pascal@20256 | 2 |
pascal@20256 | 3 PACKAGE="tlp" |
Hans-G?nter@25369 | 4 VERSION="1.5.0" |
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 |
Hans-G?nter@25369 | 14 SUGGESTED="perl" |
Hans-G?nter@25369 | 15 |
pascal@25601 | 16 # What is the latest version available today? |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@20256 | 23 # Rules to configure and make the package. |
pascal@20256 | 24 compile_rules() |
pascal@20256 | 25 { |
Hans-G?nter@25369 | 26 make install DESTDIR=$DESTDIR |
pascal@20256 | 27 } |
pascal@20256 | 28 |
pascal@20256 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20256 | 30 genpkg_rules() |
pascal@20256 | 31 { |
Hans-G?nter@23704 | 32 cp -a $install/* $fs |
pascal@20256 | 33 } |