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