wok-6.x annotate opusfile/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 | 56ee356284c6 |
children | 095836df71b7 |
rev | line source |
---|---|
pascal@20519 | 1 # SliTaz package receipt. |
pascal@20519 | 2 |
pascal@20519 | 3 PACKAGE="opusfile" |
pascal@20519 | 4 VERSION="0.11" |
pascal@20519 | 5 CATEGORY="multimedia" |
pascal@20519 | 6 SHORT_DESC="Opus streams in the Ogg container I/O" |
pascal@20519 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20519 | 8 LICENSE="GPL2" |
pascal@20519 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23797 | 10 WEB_SITE="https://opus-codec.org/" |
pascal@20519 | 11 WGET_URL="https://downloads.xiph.org/releases/opus/$TARBALL" |
pascal@20519 | 12 |
pascal@20519 | 13 DEPENDS="libssl libogg opus" |
pascal@20519 | 14 BUILD_DEPENDS="openssl-dev libogg libogg-dev opus-dev pkg-config" |
pascal@20519 | 15 |
pascal@24066 | 16 current_version() |
pascal@24066 | 17 { |
pascal@24066 | 18 wget -O - ${WEB_SITE}downloads/ 2>/dev/null | \ |
pascal@24066 | 19 sed '/opusfile/!d;/tar/!d;s|.*/opusfile-||;s|.tar.*||;q' |
pascal@24066 | 20 } |
pascal@24066 | 21 |
pascal@20519 | 22 # Rules to configure and make the package. |
pascal@20519 | 23 compile_rules() |
pascal@20519 | 24 { |
pascal@20519 | 25 ./configure --prefix=/usr \ |
pascal@20519 | 26 $CONFIGURE_ARGS && \ |
pascal@20519 | 27 make && make DESTDIR=$DESTDIR install |
pascal@20519 | 28 } |
pascal@20519 | 29 |
pascal@20519 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20519 | 31 genpkg_rules() |
pascal@20519 | 32 { |
pascal@20519 | 33 mkdir -p $fs/usr/lib |
pascal@20519 | 34 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20519 | 35 } |