wok annotate coturn/receipt @ rev 24434

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