wok view chromaprint/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (10 months ago)
parents d77ab883a8b3
children
line source
1 # SliTaz package receipt.
3 PACKAGE="chromaprint"
4 VERSION="1.5.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="LGPLv2+"
9 WEB_SITE="https://acoustid.org/chromaprint"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/acoustid/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="ffmpeg gcc83-lib-base libav libvpx"
15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 libav-dev libvpx-dev libgnutls"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed 's|AV_ERROR_MAX_STRING_SIZE|64|' -i src/audio/ffmpeg_audio_reader.h
29 export CC=gcc-83
30 export CXX=g++-83
31 export LDFLAGS="$LDFLAGS -lvpx"
33 mkdir _build &&
34 cd _build &&
35 cmake .. \
36 -D CMAKE_BUILD_TYPE=Release \
37 -D BUILD_TOOLS=ON \
38 -D CMAKE_INSTALL_PREFIX=/usr &&
39 make &&
40 make install DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cook_copy_folders bin
47 cook_copy_files *.so*
48 }