wok-current annotate stund/receipt @ rev 25024

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 20:10:17 2022 +0000 (2022-05-18)
parents 86790a278e70
children ca38ecbe9976
rev   line source
pascal@15868 1 # SliTaz package receipt.
pascal@15868 2
pascal@15868 3 PACKAGE="stund"
pascal@15868 4 VERSION="0.97"
pascal@15868 5 CATEGORY="network"
pascal@15868 6 SHORT_DESC="a simple STUN server and client."
pascal@15868 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15868 8 LICENSE="other"
pascal@15868 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/stun/"
pascal@15868 11 WGET_URL="$SF_MIRROR/stun/$TARBALL"
pascal@15868 12
pascal@15868 13 DEPENDS="gcc-lib-base"
pascal@15868 14 BUILD_DEPENDS=""
pascal@15868 15
pascal@24348 16 # What is the latest version available today?
pascal@24348 17 current_version()
pascal@24348 18 {
pascal@24348 19 wget -O - https://sourceforge.net/projects/stun/files/stun/ 2>/dev/null | \
pascal@24348 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 21 sed '/scope="row/!d;s|.*/stun/||;s|/.*||;q'
pascal@24348 22 }
pascal@24348 23
pascal@15868 24 # Rules to configure and make the package.
pascal@15868 25 compile_rules()
pascal@15868 26 {
pascal@15868 27 make
pascal@15868 28 }
pascal@15868 29
pascal@15868 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15868 31 genpkg_rules()
pascal@15868 32 {
pascal@15868 33 mkdir -p $fs/usr/bin
pascal@15868 34 cp -a $src/server $fs/usr/bin/stunserver
pascal@15868 35 cp -a $src/client $fs/usr/bin/stunclient
pascal@15868 36 }