wok-current view sndfile-tools/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="sndfile-tools"
4 VERSION="1.5"
5 CATEGORY="multimedia"
6 SHORT_DESC="Sample Rate Converter for audio binary."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.mega-nerd.com/SRC/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/libsndfile/sndfile-tools/archive/refs/tags/$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="automake libtool libsndfile-dev libsamplerate-dev \
16 fftw-dev cairo-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - http://www.mega-nerd.com/SRC/download.html 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./autogen.sh
31 ./configure \
32 --prefix=/usr \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 }