wok view libsndfile/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | eb224fc20462 |
children | 193f02614bcf |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsndfile"
4 VERSION="1.0.28"
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="http://www.mega-nerd.com/libsndfile/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/files/$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 -j 1 &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }