wok-current view libsndfile/receipt @ rev 25695
Up linux 5.10.214, Patch xorg-server (CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Apr 04 08:53:51 2024 +0000 (7 months ago) |
parents | 83b97236db32 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsndfile"
4 VERSION="1.0.31"
5 CATEGORY="multimedia"
6 SHORT_DESC="A C library for reading and writing files containing sampled sound."
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://libsndfile.github.io/libsndfile/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL"
14 DEPENDS="alsa-lib libvorbis"
15 BUILD_DEPENDS="alsa-lib-dev libvorbis-dev"
17 HOST_ARCH="i486 arm"
19 # Handle slitaz arch
20 case "$SLITAZ_ARCH" in
21 i?86) DEPENDS="$DEPENDS flac" ;;
22 esac
24 # Handle cross compilation.
25 case "$ARCH" in
26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
27 esac
29 # What is the latest version available today?
30 current_version()
31 {
32 wget -O - ${WGET_URL%/*} 2>/dev/null | \
33 sed "/test/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
34 }
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 ./configure \
40 --prefix=/usr \
41 --disable-sqlite \
42 $CONFIGURE_ARGS &&
43 make &&
44 make install DESTDIR=$DESTDIR
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cook_copy_files *.so*
51 }