wok-current view 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
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 - ftp://ftp.osuosl.org/pub/xiph/releases/opus/ 2>/dev/null | \
21 sed '/opus-tools/!d;/tar/!d;s|.*/opus-tools-||;s|.tar.*||' | sort -Vr | sed 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 }