wok-6.x view opus-tools/receipt @ rev 24326

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