wok-6.x annotate nbwmon/receipt @ rev 25461
foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 28 09:44:06 2022 +0000 (2022-09-28) |
parents | fcbbdcfa7ed0 |
children |
rev | line source |
---|---|
paul@17165 | 1 # SliTaz package receipt. |
paul@17165 | 2 |
paul@17165 | 3 PACKAGE="nbwmon" |
Hans-G?nter@21523 | 4 VERSION="0.5.2" |
paul@17165 | 5 CATEGORY="network" |
paul@17165 | 6 SHORT_DESC="Ncurses bandwidth monitor." |
paul@17165 | 7 MAINTAINER="paul@slitaz.org" |
paul@17165 | 8 LICENSE="MIT" |
Hans-G?nter@21523 | 9 WEB_SITE="https://github.com/causes-/nbwmon" |
Hans-G?nter@21523 | 10 |
Hans-G?nter@21523 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21523 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
paul@17165 | 13 |
paul@17165 | 14 DEPENDS="ncurses" |
Hans-G?nter@21523 | 15 BUILD_DEPENDS="ncurses-dev" |
paul@17165 | 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|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
paul@17165 | 23 # Rules to configure and make the package. |
paul@17165 | 24 compile_rules() |
paul@17165 | 25 { |
pascal@17672 | 26 export LDFLAGS="$LDFLAGS -ltinfo" |
paul@17165 | 27 make |
paul@17165 | 28 } |
paul@17165 | 29 |
paul@17165 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@17165 | 31 genpkg_rules() |
paul@17165 | 32 { |
paul@17165 | 33 mkdir -p $fs/usr/bin |
paul@17165 | 34 cp -a $src/$PACKAGE $fs/usr/bin |
paul@17165 | 35 } |