wok-6.x view iperf/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 7002c9273ff2
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="iperf"
4 VERSION="3.7"
5 CATEGORY="network"
6 SHORT_DESC="Measure network performance."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://iperf.fr/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/esnet/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="gcc-lib-base"
15 BUILD_DEPENDS=""
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # because of conflict with -pg:
27 CFLAGS=${CFLAGS/-fomit-frame-pointer/}
29 ./configure \
30 --prefix=/usr \
31 --host=i686-pc-linux-gnu \
32 --build=i686-pc-linux-gnu &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 }