wok-6.x view flac/receipt @ rev 24938
mypaint-brushes: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 14 09:10:40 2022 +0000 (2022-04-14) |
parents | 0d34e58f2fb5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="flac"
4 VERSION="1.3.4"
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="http://downloads.xiph.org/releases/$PACKAGE/$TARBALL"
15 DEPENDS="gcc83-lib-base libogg"
16 BUILD_DEPENDS="gcc83 libogg-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://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 CC=gcc-83 \
35 --prefix=/usr \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install DESTDIR=$DESTDIR
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cook_copy_folders bin
46 cook_copy_files *.so*
47 }