wok-current annotate mtr/receipt @ rev 25434

Up znc (1.8.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 29 10:14:47 2022 +0000 (2022-08-29)
parents b65543f4a4eb
children
rev   line source
paul@3598 1 # SliTaz package receipt.
paul@3598 2
paul@3598 3 PACKAGE="mtr"
Hans-G?nter@24931 4 VERSION="0.95"
paul@3598 5 CATEGORY="network"
paul@3598 6 SHORT_DESC="My traceroute."
paul@3598 7 MAINTAINER="paul@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
pascal@24782 9 WEB_SITE="https://www.bitwizard.nl/mtr/"
Hans-G?nter@23201 10
paul@3598 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@24931 12 WGET_URL="https://github.com/traviscross/$PACKAGE/archive/v$VERSION/$PACKAGE-v$VERSION.tar.gz"
paul@3598 13
pascal@15583 14 DEPENDS="ncurses"
Hans-G?nter@23201 15 BUILD_DEPENDS="autoconf automake linux-api-headers ncurses-dev"
pascal@15583 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24614 20 wget -O - https://github.com/traviscross/mtr/tags 2>/dev/null | \
pascal@24614 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24453 22 }
pascal@24453 23
paul@3598 24 # Rules to configure and make the package.
paul@3598 25 compile_rules()
paul@3598 26 {
Hans-G?nter@24931 27 ./bootstrap.sh &&
Hans-G?nter@24931 28 ./configure \
Hans-G?nter@24931 29 LDFLAGS="$LDFLAGS -ltinfo" \
Hans-G?nter@24931 30 --prefix=/usr \
Hans-G?nter@24931 31 --without-gtk \
Hans-G?nter@24931 32 --mandir=/usr/share/man \
paul@3598 33 $CONFIGURE_ARGS &&
Hans-G?nter@23201 34 make &&
Hans-G?nter@24931 35 make install DESTDIR=$DESTDIR
paul@3598 36 }
paul@3598 37
paul@3598 38 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3598 39 genpkg_rules()
paul@3598 40 {
Hans-G?nter@24931 41 cook_copy_folders sbin
paul@3598 42 }