wok-6.x annotate vorbis-tools/receipt @ rev 24072
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 17:56:16 2021 +0000 (2021-07-07) |
parents | c02f18f9e836 |
children | 095836df71b7 |
rev | line source |
---|---|
pankso@84 | 1 # SliTaz package receipt. |
pankso@84 | 2 |
pankso@84 | 3 PACKAGE="vorbis-tools" |
devl547@5655 | 4 VERSION="1.4.0" |
pankso@206 | 5 CATEGORY="multimedia" |
pankso@84 | 6 SHORT_DESC="Vorbis encoder, decoder and tiny tools." |
pankso@84 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@84 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23844 | 10 WEB_SITE="https://www.xiph.org/vorbis/" |
pascal@20669 | 11 WGET_URL="https://downloads.xiph.org/releases/vorbis/$TARBALL" |
jozee@4975 | 12 TAGS="multimedia ogg" |
pascal@19116 | 13 HOST_ARCH="i486 arm" |
pankso@84 | 14 |
pankso@9991 | 15 DEPENDS="libogg libvorbis flac libao libcurl speex libcrypto" |
pankso@9992 | 16 BUILD_DEPENDS="libogg-dev libvorbis-dev flac-dev libao-dev curl-dev speex-dev \ |
pankso@9991 | 17 libcrypto-dev" |
pankso@9991 | 18 |
pascal@24072 | 19 current_version() |
pascal@24072 | 20 { |
pascal@24072 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 23 } |
pascal@24072 | 24 |
pankso@84 | 25 # Rules to configure and make the package. |
pankso@84 | 26 compile_rules() |
pankso@84 | 27 { |
pankso@84 | 28 cd $src |
slaxemulator@10100 | 29 ./configure $CONFIGURE_ARGS && make && make install |
pankso@84 | 30 } |
pankso@84 | 31 |
pankso@84 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@84 | 33 genpkg_rules() |
pankso@84 | 34 { |
pankso@4314 | 35 mkdir -p $fs/usr |
pascal@15000 | 36 cp -a $install/usr/bin $fs/usr |
pankso@84 | 37 } |