wok view opus/receipt @ rev 24066

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 15:00:07 2021 +0000 (2021-07-05)
parents 5ea0ce1cecc0
children 095836df71b7
line source
1 # SliTaz package receipt.
3 PACKAGE="opus"
4 VERSION="1.3.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Totally open, royalty-free, highly versatile audio codec."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://opus-codec.org/"
11 WGET_URL="https://archive.mozilla.org/pub/$PACKAGE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 current_version()
17 {
18 wget -O - ${WEB_SITE}downloads/ 2>/dev/null | \
19 sed '/Opus/!d;/tar/!d;s|.*/opus-||;s|.tar.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure --prefix=/usr \
26 --enable-float-approx --enable-fuzzing \
27 $CONFIGURE_ARGS && \
28 make && make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/bin $install/usr/share/doc
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 cp $src/opus_demo $fs/usr/bin
37 cp $src/README $src/COPYING $install/usr/share/doc
38 }