wok annotate bwm-ng/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 5ea0ce1cecc0
children 343c093ad221
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@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@19363 23 # Rules to configure and make the package.
pascal@19363 24 compile_rules()
pascal@19363 25 {
pascal@19365 26 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@24388 27
Hans-G?nter@24388 28 ./autogen.sh \
Hans-G?nter@24388 29 --prefix=/usr \
Hans-G?nter@24388 30 --mandir=/usr/share/man \
pascal@19363 31 $CONFIGURE_ARGS &&
pascal@19363 32 make &&
Hans-G?nter@24388 33 make install DESTDIR=$DESTDIR
pascal@19363 34 }
pascal@19363 35
pascal@19363 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19363 37 genpkg_rules()
pascal@19363 38 {
Hans-G?nter@24388 39 cook_copy_folders bin
pascal@19363 40 }