wok-current annotate chromaprint/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | 5ea0ce1cecc0 |
children | d77ab883a8b3 |
rev | line source |
---|---|
Hans-G?nter@21753 | 1 # SliTaz package receipt. |
Hans-G?nter@21753 | 2 |
Hans-G?nter@21753 | 3 PACKAGE="chromaprint" |
Hans-G?nter@24404 | 4 VERSION="1.5.1" |
Hans-G?nter@21753 | 5 CATEGORY="multimedia" |
Hans-G?nter@21753 | 6 SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source." |
Hans-G?nter@24404 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@21753 | 8 LICENSE="LGPLv2+" |
Hans-G?nter@21753 | 9 WEB_SITE="https://acoustid.org/chromaprint" |
Hans-G?nter@21753 | 10 |
Hans-G?nter@21753 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21753 | 12 WGET_URL="https://github.com/acoustid/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
Hans-G?nter@21753 | 13 |
Hans-G?nter@24404 | 14 DEPENDS="ffmpeg gcc83-lib-base libav libvpx" |
Hans-G?nter@24404 | 15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 libav-dev libvpx-dev libgnutls" |
Hans-G?nter@21753 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
Hans-G?nter@21753 | 23 # Rules to configure and make the package. |
Hans-G?nter@21753 | 24 compile_rules() |
Hans-G?nter@21753 | 25 { |
pascal@21799 | 26 #lavc 55.28.1 (2013-12-11) |
Hans-G?nter@24404 | 27 sed -i -e 's|avcodec_alloc_frame|av_frame_alloc|' \ |
Hans-G?nter@24404 | 28 -e 's|avcodec_free_frame|av_frame_free|' \ |
Hans-G?nter@24404 | 29 src/audio/ffmpeg_audio_reader.h |
Hans-G?nter@24404 | 30 |
Hans-G?nter@21753 | 31 export CC=gcc-83 |
Hans-G?nter@21753 | 32 export CXX=g++-83 |
Hans-G?nter@24404 | 33 export LDFLAGS="$LDFLAGS -lvpx" |
Hans-G?nter@21753 | 34 |
Hans-G?nter@24404 | 35 mkdir _build && |
Hans-G?nter@24404 | 36 cd _build && |
Hans-G?nter@24404 | 37 cmake .. \ |
Hans-G?nter@24404 | 38 -D CMAKE_BUILD_TYPE=Release \ |
Hans-G?nter@24404 | 39 -D BUILD_TOOLS=ON \ |
Hans-G?nter@24404 | 40 -D CMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@21753 | 41 make && |
Hans-G?nter@24404 | 42 make install DESTDIR=$DESTDIR |
Hans-G?nter@21753 | 43 } |
Hans-G?nter@21753 | 44 |
Hans-G?nter@21753 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@21753 | 46 genpkg_rules() |
Hans-G?nter@21753 | 47 { |
Hans-G?nter@24404 | 48 cook_copy_folders bin |
Hans-G?nter@24404 | 49 cook_copy_files *.so* |
Hans-G?nter@21753 | 50 } |