wok-6.x annotate opus/receipt @ rev 24893

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 07 17:00:12 2022 +0000 (2022-04-07)
parents 3abeffdae80b
children
rev   line source
pascal@13359 1 # SliTaz package receipt.
pascal@13359 2
pascal@13359 3 PACKAGE="opus"
pascal@21605 4 VERSION="1.3.1"
pascal@13359 5 CATEGORY="multimedia"
pascal@13359 6 SHORT_DESC="Totally open, royalty-free, highly versatile audio codec."
pascal@13359 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 8 LICENSE="BSD"
pascal@13359 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/$PACKAGE/$TARBALL"
pascal@13359 12
pascal@13359 13 DEPENDS=""
pascal@13359 14 BUILD_DEPENDS=""
pascal@13359 15
pascal@24326 16 # What is the latest version available today?
pascal@24066 17 current_version()
pascal@24066 18 {
pascal@24614 19 wget -O - https://ftp.osuosl.org/pub/xiph/releases/opus/ 2>/dev/null | \
pascal@24614 20 sed '/opus-[0-9]/!d;/tar/!d;s|.*opus-||;s|.tar.*||' | sort -Vr | sed q
pascal@24066 21 }
pascal@24066 22
pascal@13359 23 # Rules to configure and make the package.
pascal@13359 24 compile_rules()
pascal@13359 25 {
pascal@13359 26 ./configure --prefix=/usr \
pascal@13359 27 --enable-float-approx --enable-fuzzing \
pascal@13359 28 $CONFIGURE_ARGS && \
pascal@13359 29 make && make DESTDIR=$DESTDIR install
pascal@13359 30 }
pascal@13359 31
pascal@13359 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13359 33 genpkg_rules()
pascal@13359 34 {
pascal@21772 35 mkdir -p $fs/usr/lib $fs/usr/bin $install/usr/share/doc
pascal@17393 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@21772 37 cp $src/opus_demo $fs/usr/bin
pascal@21772 38 cp $src/README $src/COPYING $install/usr/share/doc
pascal@13359 39 }