wok view speedometer/receipt @ rev 24462

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 21:07:01 2022 +0000 (2022-02-16)
parents 3b4e4318134e
children cb67b4f8be05
line source
1 # SliTaz package receipt.
3 PACKAGE="speedometer"
4 VERSION="2.8"
5 CATEGORY="utilities"
6 SHORT_DESC="Measure and display rate of data across a network connection."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://excess.org/speedometer/"
11 WGET_URL="http://excess.org/speedometer/$TARBALL"
13 DEPENDS="python python-urwid"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://github.com/wardi/speedometer/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 cp $src/speedometer.py $fs/usr/bin/speedometer
27 }