wok view stuntman/receipt @ rev 25361

sshrc: typo in wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 27 16:25:20 2022 +0000 (2022-07-27)
parents ad8b9ff412d2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="stuntman"
4 VERSION="1.2.15"
5 CATEGORY="network"
6 SHORT_DESC="STUN protocol (Session Traversal Utilities for NAT)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://www.stunprotocol.org/"
11 SOURCE="stunserver"
12 TARBALL="$SOURCE-$VERSION.tgz"
13 WGET_URL="$WEB_SITE/$TARBALL"
15 DEPENDS="gcc-lib-base libcrypto zlib"
16 BUILD_DEPENDS="libboost-dev openssl-dev zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed '/stunserver-[0-9]/!d;s|.*stunserver-\(.*\).tgz.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
36 cp $src/stunserver $fs/usr/bin
37 cp $src/stunclient $fs/usr/bin
38 cp $src/stuntestcode $fs/usr/bin
39 }