wok-6.x view flac/receipt @ rev 24414
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 11:43:39 2022 +0000 (2022-02-10) |
parents | 095836df71b7 |
children | 67565ccdef88 |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ftp://ftp.osuosl.org/pub/xiph/releases/flac/ 2>/dev/null | \
24 sed '/flac-/!d;/zip/d;s|.*flac-||;s|.tar.*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # gcc4 fix: http://bugs.gentoo.org/199579
31 # busybox patch -p0 -i $stuff/flac-1.2.1_gcc4.u
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 }