wok-6.x annotate ttyload/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | 3d96b88308b0 |
children |
rev | line source |
---|---|
pascal@1740 | 1 # SliTaz package receipt. |
pascal@1740 | 2 |
pascal@1740 | 3 PACKAGE="ttyload" |
Hans-G?nter@22056 | 4 VERSION="0.5.3" |
pascal@1740 | 5 CATEGORY="system-tools" |
Hans-G?nter@22056 | 6 SHORT_DESC="Color-coded graph of load averages over time." |
pascal@1740 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="ISC" |
pascal@21302 | 9 WEB_SITE="https://www.daveltd.com/src/util/ttyload/" |
Hans-G?nter@22056 | 10 |
Hans-G?nter@22056 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1740 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@1740 | 13 |
pascal@24304 | 14 # What is the latest version available today? |
pascal@24304 | 15 current_version() |
pascal@24304 | 16 { |
pascal@24304 | 17 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24304 | 18 sed '/is now/!d;s|.*ttyload-||;s|.tar.*||;q' |
pascal@24304 | 19 } |
pascal@24304 | 20 |
pascal@1740 | 21 # Rules to configure and make the package. |
pascal@1740 | 22 compile_rules() |
pascal@1740 | 23 { |
Hans-G?nter@22056 | 24 # 0.5.3 |
Hans-G?nter@22056 | 25 sed -i '10i#include <time.h>' ttyload.h |
Hans-G?nter@22056 | 26 |
pascal@1740 | 27 make |
pascal@1740 | 28 } |
pascal@1740 | 29 |
pascal@1740 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1740 | 31 genpkg_rules() |
pascal@1740 | 32 { |
pascal@1740 | 33 mkdir -p $fs/usr/bin |
pascal@1740 | 34 cp -a $src/ttyload $fs/usr/bin |
pascal@1740 | 35 } |