wok-current annotate libvorbis/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 3ed0c77db495
children 095836df71b7
rev   line source
pankso@32 1 # SliTaz package receipt.
pankso@32 2
pankso@32 3 PACKAGE="libvorbis"
Hans-G?nter@21333 4 VERSION="1.3.6"
pankso@206 5 CATEGORY="multimedia"
pankso@32 6 SHORT_DESC="Vorbis base library."
pankso@32 7 MAINTAINER="pankso@slitaz.org"
Hans-G?nter@21333 8 LICENSE="BSD"
Hans-G?nter@21333 9 WEB_SITE="https://www.xiph.org/vorbis/"
Hans-G?nter@21333 10
pankso@32 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20669 12 WGET_URL="https://downloads.xiph.org/releases/vorbis/$TARBALL"
pankso@32 13
pascal@14744 14 DEPENDS="libogg"
pascal@14744 15 BUILD_DEPENDS="libogg-dev"
pascal@14744 16
Hans-G?nter@21333 17 HOST_ARCH="i486 arm"
Hans-G?nter@21333 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@32 25 # Rules to configure and make the package.
pankso@32 26 compile_rules()
pankso@32 27 {
pankso@16020 28 ./configure \
pankso@16020 29 $CONFIGURE_ARGS &&
Hans-G?nter@21333 30 make -j 1 &&
slaxemulator@12332 31 make DESTDIR=$DESTDIR install
pankso@32 32 }
pankso@32 33
pankso@32 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@32 35 genpkg_rules()
pankso@32 36 {
pankso@32 37 mkdir -p $fs/usr/lib
pankso@4314 38
pankso@32 39 # The libvorbisenc files should go in libvorbis-enc
pascal@14744 40 #cp -a $install/usr/lib/libvorbis.so* $fs/usr/lib
pascal@14744 41 #cp -a $install/usr/lib/libvorbisfile.so* $fs/usr/lib
pankso@4314 42
pascal@14744 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@32 44 }