wok annotate bwm-ng/receipt @ rev 25597

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 11:24:03 2023 +0000 (10 months ago)
parents 378047fc5291
children
rev   line source
pascal@19363 1 # SliTaz package receipt.
pascal@19363 2
pascal@19363 3 PACKAGE="bwm-ng"
Hans-G?nter@24388 4 VERSION="0.6.3"
pascal@19363 5 CATEGORY="network"
pascal@19363 6 SHORT_DESC="Bandwidth Monitor NG."
pascal@19363 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19363 8 LICENSE="GPL2"
Hans-G?nter@20753 9 WEB_SITE="https://www.gropp.org/?id=projects&sub=bwm-ng"
Hans-G?nter@20753 10
pascal@19363 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20753 12 WGET_URL="https://github.com/vgropp/$PACKAGE/archive/v$VERSION/$TARBALL"
pascal@19363 13
pascal@19365 14 DEPENDS="libtinfo"
Hans-G?nter@20756 15 BUILD_DEPENDS="autoconf automake ncurses-dev"
pascal@19365 16
pascal@25597 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25597 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
pascal@19363 24 # Rules to configure and make the package.
pascal@19363 25 compile_rules()
pascal@19363 26 {
pascal@19365 27 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@24388 28
Hans-G?nter@24388 29 ./autogen.sh \
Hans-G?nter@24388 30 --prefix=/usr \
Hans-G?nter@24388 31 --mandir=/usr/share/man \
pascal@19363 32 $CONFIGURE_ARGS &&
pascal@19363 33 make &&
Hans-G?nter@24388 34 make install DESTDIR=$DESTDIR
pascal@19363 35 }
pascal@19363 36
pascal@19363 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19363 38 genpkg_rules()
pascal@19363 39 {
Hans-G?nter@24388 40 cook_copy_folders bin
pascal@19363 41 }