wok view flac/receipt @ rev 24071

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 10:35:01 2021 +0000 (2021-07-07)
parents 7e911016a644
children 095836df71b7
line source
1 # SliTaz package receipt.
3 PACKAGE="flac"
4 VERSION="1.3.3"
5 CATEGORY="multimedia"
6 TAGS="codec audio"
7 SHORT_DESC="Free Lossless Audio Codec."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2 LGPL2.1"
10 WEB_SITE="https://xiph.org/flac/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://downloads.xiph.org/releases/$PACKAGE/$TARBALL"
15 DEPENDS="gcc-lib-base libogg"
16 BUILD_DEPENDS="libogg-dev"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed '/flac-/!d;/tar/!d;s|.*"flac-||;s|.tar.*||' | sort -V | sed '$!d'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # gcc4 fix: http://bugs.gentoo.org/199579
30 # busybox patch -p0 -i $stuff/flac-1.2.1_gcc4.u
32 ./configure \
33 --prefix=/usr \
34 --mandir=/usr/share/man \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 }