wok-current view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="libvorbis"
4 VERSION="1.3.6"
5 CATEGORY="multimedia"
6 SHORT_DESC="Vorbis base library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.xiph.org/vorbis/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://downloads.xiph.org/releases/vorbis/$TARBALL"
14 DEPENDS="libogg"
15 BUILD_DEPENDS="libogg-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 $CONFIGURE_ARGS &&
30 make -j 1 &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
39 # The libvorbisenc files should go in libvorbis-enc
40 #cp -a $install/usr/lib/libvorbis.so* $fs/usr/lib
41 #cp -a $install/usr/lib/libvorbisfile.so* $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }