wok-6.x annotate i7z/receipt @ rev 24082

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 18:20:09 2021 +0000 (2021-07-09)
parents 45ad031ff730
children ac8ca9758df1
rev   line source
pascal@16327 1 # SliTaz package receipt.
pascal@16327 2
pascal@16327 3 PACKAGE="i7z"
Hans-G?nter@22938 4 VERSION="0.27.3"
pascal@16327 5 CATEGORY="misc"
pascal@16327 6 SHORT_DESC="A better i7 (and now i3, i5) reporting tool for Linux."
pascal@16327 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16327 8 LICENSE="GPL2"
Hans-G?nter@22938 9 WEB_SITE="https://github.com/DimitryAndric/i7z"
Hans-G?nter@22938 10
pascal@16327 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22938 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@16327 13
pascal@16327 14 DEPENDS="ncurses"
Hans-G?nter@22938 15 BUILD_DEPENDS="ncurses-dev"
pascal@16327 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@16327 23 # Rules to configure and make the package.
pascal@16327 24 compile_rules()
pascal@16327 25 {
pascal@17670 26 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@22938 27
pascal@16327 28 make &&
pascal@16327 29 make DESTDIR=$DESTDIR install
pascal@16327 30 }
pascal@16327 31
pascal@16327 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16327 33 genpkg_rules()
pascal@16327 34 {
pascal@16327 35 mkdir $fs/usr
pascal@16327 36 cp -a $install/usr/sbin $fs/usr
pascal@16327 37 }