wok view bmon/receipt @ rev 25686

Use System category for pm-suspend entry
author Stanislas Leduc <shann@slitaz.org>
date Sat Apr 06 12:03:22 2024 +0200 (7 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bmon"
4 VERSION="4.0"
5 CATEGORY="network"
6 SHORT_DESC="bandwidth monitor and rate estimator"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/tgraf/bmon"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 DEPENDS="libnl ncursesw"
15 BUILD_DEPENDS="wget autoconf automake libconfuse glib libnl-dev ncursesw-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh
28 ./configure --prefix=/usr \
29 --sysconfdir=/etc \
30 --with-ncursesw \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/etc
40 cp -a $install/usr/share/doc/bmon/examples/bmon.conf $fs/etc
41 cp -a $install/usr/bin $fs/usr
42 }