wok-6.x annotate libsndfile/receipt @ rev 25425
updated xa (2.3.10 -> 2.3.13)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 16:31:57 2022 +0100 (2022-08-18) |
parents | 83b97236db32 |
children |
rev | line source |
---|---|
jozee@2659 | 1 # SliTaz package receipt. |
jozee@2659 | 2 |
jozee@2659 | 3 PACKAGE="libsndfile" |
Hans-G?nter@24831 | 4 VERSION="1.0.31" |
jozee@2659 | 5 CATEGORY="multimedia" |
Hans-G?nter@21299 | 6 SHORT_DESC="A C library for reading and writing files containing sampled sound." |
jozee@2659 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15482 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@24831 | 9 WEB_SITE="https://libsndfile.github.io/libsndfile/" |
Hans-G?nter@21299 | 10 |
Hans-G?nter@24831 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@24831 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL" |
jozee@2659 | 13 |
pankso@16268 | 14 DEPENDS="alsa-lib libvorbis" |
pankso@16268 | 15 BUILD_DEPENDS="alsa-lib-dev libvorbis-dev" |
pankso@16268 | 16 |
Hans-G?nter@21299 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@21299 | 18 |
pankso@16268 | 19 # Handle slitaz arch |
pankso@16268 | 20 case "$SLITAZ_ARCH" in |
pankso@16268 | 21 i?86) DEPENDS="$DEPENDS flac" ;; |
pankso@16268 | 22 esac |
pankso@16268 | 23 |
pankso@16268 | 24 # Handle cross compilation. |
pankso@16268 | 25 case "$ARCH" in |
pascal@16327 | 26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;; |
pankso@16268 | 27 esac |
pascal@15482 | 28 |
pascal@24427 | 29 # What is the latest version available today? |
pascal@24427 | 30 current_version() |
pascal@24427 | 31 { |
pascal@24427 | 32 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 33 sed "/test/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 34 } |
pascal@24427 | 35 |
jozee@2659 | 36 # Rules to configure and make the package. |
jozee@2659 | 37 compile_rules() |
jozee@2659 | 38 { |
Hans-G?nter@21299 | 39 ./configure \ |
Hans-G?nter@21299 | 40 --prefix=/usr \ |
Hans-G?nter@21299 | 41 --disable-sqlite \ |
Hans-G?nter@21299 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@24831 | 43 make && |
Hans-G?nter@24831 | 44 make install DESTDIR=$DESTDIR |
jozee@2659 | 45 } |
jozee@2659 | 46 |
jozee@2659 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2659 | 48 genpkg_rules() |
jozee@2659 | 49 { |
Hans-G?nter@24831 | 50 cook_copy_files *.so* |
jozee@2659 | 51 } |