wok-current annotate tcpick/receipt @ rev 24340

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 31 11:41:46 2022 +0000 (2022-01-31)
parents 600aaedb561d
children 7dd01dedad38
rev   line source
slaxemulator@9196 1 # SliTaz package receipt.
slaxemulator@9196 2
slaxemulator@9196 3 PACKAGE="tcpick"
slaxemulator@9196 4 VERSION="0.2.1"
slaxemulator@9196 5 CATEGORY="network"
slaxemulator@9196 6 SHORT_DESC="TCP stream sniffer and connection tracker"
slaxemulator@9196 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15590 8 LICENSE="GPL2"
slaxemulator@9196 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@9196 10 WEB_SITE="http://tcpick.sourceforge.net/"
slaxemulator@9196 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@9196 12
pascal@10459 13 DEPENDS="libpcap"
pascal@10610 14 BUILD_DEPENDS="libpcap-dev"
pascal@10459 15
pascal@24340 16 # What is the latest version available today?
pascal@24340 17 current_version()
pascal@24340 18 {
pascal@24340 19 wget -O - https://sourceforge.net/projects/tcpick/files/tcpick/ 2>/dev/null | \
pascal@24340 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;s|.*/tcpick/||;s|/.*||;q'
pascal@24340 22 }
pascal@24340 23
slaxemulator@9196 24 # Rules to configure and make the package.
slaxemulator@9196 25 compile_rules()
slaxemulator@9196 26 {
slaxemulator@9196 27 cd $src
slaxemulator@9196 28 ./configure --mandir=/usr/share/man && make && make install
slaxemulator@9196 29 }
slaxemulator@9196 30
slaxemulator@9196 31 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9196 32 genpkg_rules()
slaxemulator@9196 33 {
slaxemulator@9196 34 mkdir -p $fs/usr
pascal@15590 35 cp -a $install/usr/bin $fs/usr
slaxemulator@9196 36 }
slaxemulator@9196 37