wok-current annotate bmon/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | da2364efb6fb |
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@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@17513 | 23 # Rules to configure and make the package. |
pascal@17513 | 24 compile_rules() |
pascal@17513 | 25 { |
pascal@17513 | 26 ./autogen.sh |
pascal@17513 | 27 ./configure --prefix=/usr \ |
pascal@17513 | 28 --sysconfdir=/etc \ |
Hans-G?nter@20752 | 29 --with-ncursesw \ |
pascal@17513 | 30 $CONFIGURE_ARGS && |
pascal@17513 | 31 make && |
pascal@17513 | 32 make DESTDIR=$DESTDIR install |
pascal@17513 | 33 } |
pascal@17513 | 34 |
pascal@17513 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17513 | 36 genpkg_rules() |
pascal@17513 | 37 { |
pascal@17513 | 38 mkdir -p $fs/usr $fs/etc |
pascal@17513 | 39 cp -a $install/usr/share/doc/bmon/examples/bmon.conf $fs/etc |
pascal@17513 | 40 cp -a $install/usr/bin $fs/usr |
pascal@17513 | 41 } |