wok view coturn/receipt @ rev 24383

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 11:51:57 2022 +0000 (2022-02-06)
parents 800de22df35e
children 60d5e8ab6201
line source
1 # SliTaz package receipt.
3 PACKAGE="coturn"
4 VERSION="4.5.1.3"
5 CATEGORY="network"
6 SHORT_DESC="Free open source implementation of TURN and STUN Server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/coturn/coturn"
11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
12 TAGS="stun turn"
14 DEPENDS="libssl libsqlite zlib libevent"
15 BUILD_DEPENDS="openssl-dev sqlite-dev zlib-dev libevent-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpthread"
27 ./configure --prefix=/usr \
28 --sysconfdir=/etc \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
39 cp -a $install/etc $fs
40 cp -a $install/var $fs
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/share/examples $fs/usr/share
43 cp -a $install/usr/share/turnserver $fs/usr/share
44 }