wok annotate bwm-ng/receipt @ rev 24081
php-auth-pam: remove patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 09 16:30:40 2021 +0000 (2021-07-09) |
parents | bb64ef45fe1f |
children | 378047fc5291 |
rev | line source |
---|---|
pascal@19363 | 1 # SliTaz package receipt. |
pascal@19363 | 2 |
pascal@19363 | 3 PACKAGE="bwm-ng" |
Hans-G?nter@20753 | 4 VERSION="0.6.2" |
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@20753 | 27 ./autogen.sh \ |
Hans-G?nter@20753 | 28 --prefix=/usr \ |
pascal@19363 | 29 --mandir=/usr/share/man \ |
pascal@19363 | 30 $CONFIGURE_ARGS && |
pascal@19363 | 31 make && |
pascal@19363 | 32 make DESTDIR=$DESTDIR install |
pascal@19363 | 33 } |
pascal@19363 | 34 |
pascal@19363 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19363 | 36 genpkg_rules() |
pascal@19363 | 37 { |
pascal@19363 | 38 mkdir -p $fs/usr |
pascal@19363 | 39 cp -a $install/usr/bin $fs/usr |
pascal@19363 | 40 } |