wok-current annotate opus-tools/receipt @ rev 24564

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 25 18:06:36 2022 +0000 (2022-02-25)
parents 095836df71b7
children bc2b9d9bed6f
rev   line source
pascal@13361 1 # SliTaz package receipt.
pascal@13361 2
pascal@13361 3 PACKAGE="opus-tools"
pascal@20518 4 VERSION="0.2"
pascal@13361 5 CATEGORY="multimedia"
pascal@13361 6 SHORT_DESC="Opus encoder, decoder and tiny tools."
pascal@13361 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pascal@13361 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@23797 10 WEB_SITE="https://opus-codec.org/"
pascal@20518 11 WGET_URL="https://archive.mozilla.org/pub/opus/$TARBALL"
pascal@13361 12
pascal@20519 13 DEPENDS="libogg flac opusfile libopusenc"
pascal@20519 14 BUILD_DEPENDS="libogg libogg-dev opus-dev pkg-config flac-dev \
pascal@20519 15 opusfile-dev libopusenc-dev"
pascal@13361 16
pascal@24326 17 # What is the latest version available today?
pascal@24066 18 current_version()
pascal@24066 19 {
pascal@24414 20 wget -O - ftp://ftp.osuosl.org/pub/xiph/releases/opus/ 2>/dev/null | \
pascal@24414 21 sed '/opus-tools/!d;/tar/!d;s|.*/opus-tools-||;s|.tar.*||' | sort -Vr | sed q
pascal@24066 22 }
pascal@24066 23
pascal@13361 24 # Rules to configure and make the package.
pascal@13361 25 compile_rules()
pascal@13361 26 {
devl547@16197 27 CFLAGS="$CFLAGS -lm"
pascal@13361 28 ./configure --prefix=/usr \
pascal@13361 29 $CONFIGURE_ARGS && \
pascal@13361 30 make && make DESTDIR=$DESTDIR install
pascal@13361 31 }
pascal@13361 32
pascal@13361 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13361 34 genpkg_rules()
pascal@13361 35 {
pascal@13361 36 mkdir -p $fs/usr
pascal@13361 37 cp -a $install/usr/bin $fs/usr
pascal@13361 38 }