wok annotate mtr/receipt @ rev 24727
cookutils: add repo-cooking (used by tank)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 15 10:59:31 2022 +0000 (2022-03-15) |
parents | 241fb98cab1c |
children | b65543f4a4eb |
rev | line source |
---|---|
paul@3598 | 1 # SliTaz package receipt. |
paul@3598 | 2 |
paul@3598 | 3 PACKAGE="mtr" |
Hans-G?nter@23201 | 4 VERSION="0.93" |
paul@3598 | 5 CATEGORY="network" |
paul@3598 | 6 SHORT_DESC="My traceroute." |
paul@3598 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15583 | 8 LICENSE="GPL2" |
Hans-G?nter@23201 | 9 WEB_SITE="http://www.bitwizard.nl/mtr/" |
Hans-G?nter@23201 | 10 |
paul@3598 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@3598 | 12 WGET_URL="ftp://ftp.bitwizard.nl/mtr/$TARBALL" |
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@23201 | 27 # ./bootstrap.sh |
Hans-G?nter@23201 | 28 |
pascal@17670 | 29 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@23201 | 30 |
Hans-G?nter@23201 | 31 ./configure \ |
Hans-G?nter@23201 | 32 --prefix=/usr \ |
Hans-G?nter@23201 | 33 --without-gtk \ |
Hans-G?nter@23201 | 34 --mandir=/usr/share/man \ |
paul@3598 | 35 $CONFIGURE_ARGS && |
Hans-G?nter@23201 | 36 make && |
Hans-G?nter@23201 | 37 make DESTDIR=$DESTDIR install |
paul@3598 | 38 } |
paul@3598 | 39 |
paul@3598 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@3598 | 41 genpkg_rules() |
paul@3598 | 42 { |
paul@3598 | 43 mkdir -p $fs/usr |
Hans-G?nter@23201 | 44 cp -a $install/usr/sbin $fs/usr |
paul@3598 | 45 } |