wok-current annotate nethogs/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents 4e6875d4e582
children
rev   line source
paul@4626 1 # SliTaz package receipt.
paul@4626 2
paul@4626 3 PACKAGE="nethogs"
Hans-G?nter@23235 4 VERSION="0.8.5"
paul@4626 5 CATEGORY="network"
Hans-G?nter@23235 6 TAGS="network"
paul@4626 7 SHORT_DESC="Small 'net top' tool."
paul@4626 8 MAINTAINER="paul@slitaz.org"
pascal@15601 9 LICENSE="GPL"
Hans-G?nter@23235 10 WEB_SITE="https://github.com/raboof/nethogs"
Hans-G?nter@23235 11
paul@4626 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23235 13 WGET_URL="${WEB_SITE}/archive/v$VERSION.tar.gz"
paul@4626 14
Hans-G?nter@23235 15 DEPENDS="gcc-lib-base libpcap ncursesw"
Hans-G?nter@23235 16 BUILD_DEPENDS="libpcap libpcap-dev ncursesw-dev"
pascal@15601 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
paul@4626 24 # Rules to configure and make the package.
paul@4626 25 compile_rules()
paul@4626 26 {
Hans-G?nter@23235 27 # sed -i 's|lncurses|& -ltinfo|' Makefile
Hans-G?nter@23235 28 export LDFLAGS="$LDFLAGS -lncursesw"
Hans-G?nter@23235 29
paul@4626 30 make
paul@4626 31 }
paul@4626 32
paul@4626 33 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4626 34 genpkg_rules()
paul@4626 35 {
paul@4626 36 mkdir -p $fs/usr/sbin
Hans-G?nter@23235 37 cp $src/src/nethogs $fs/usr/sbin
paul@4626 38 }