wok annotate bmon/receipt @ rev 25697

dool: reduced size of package
author Hans-G?nter Theisgen
date Sun May 12 07:10:04 2024 +0100 (5 weeks ago)
parents 5ea0ce1cecc0
children
rev   line source
pascal@17513 1 # SliTaz package receipt.
pascal@17513 2
pascal@17513 3 PACKAGE="bmon"
Hans-G?nter@20752 4 VERSION="4.0"
pascal@17513 5 CATEGORY="network"
pascal@17513 6 SHORT_DESC="bandwidth monitor and rate estimator"
pascal@17513 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17513 8 LICENSE="MIT"
Hans-G?nter@20752 9 WEB_SITE="https://github.com/tgraf/bmon"
Hans-G?nter@20752 10
pascal@17513 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17513 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@17513 13
pascal@17513 14 DEPENDS="libnl ncursesw"
pascal@17513 15 BUILD_DEPENDS="wget autoconf automake libconfuse glib libnl-dev ncursesw-dev"
pascal@17513 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@17513 24 # Rules to configure and make the package.
pascal@17513 25 compile_rules()
pascal@17513 26 {
pascal@17513 27 ./autogen.sh
pascal@17513 28 ./configure --prefix=/usr \
pascal@17513 29 --sysconfdir=/etc \
Hans-G?nter@20752 30 --with-ncursesw \
pascal@17513 31 $CONFIGURE_ARGS &&
pascal@17513 32 make &&
pascal@17513 33 make DESTDIR=$DESTDIR install
pascal@17513 34 }
pascal@17513 35
pascal@17513 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17513 37 genpkg_rules()
pascal@17513 38 {
pascal@17513 39 mkdir -p $fs/usr $fs/etc
pascal@17513 40 cp -a $install/usr/share/doc/bmon/examples/bmon.conf $fs/etc
pascal@17513 41 cp -a $install/usr/bin $fs/usr
pascal@17513 42 }