void-packages/srcpkgs/chromaprint/template
2022-02-20 13:03:49 +01:00

33 lines
1,004 B
Bash

# Template file for 'chromaprint'
pkgname=chromaprint
version=1.5.1
revision=1
build_style=cmake
configure_args="-DBUILD_TOOLS=ON"
make_check_target="check"
makedepends="fftw-devel ffmpeg-devel"
short_desc="Library that extracts fingerprints from any audio source"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, LGPL-2.1-only"
homepage="https://acoustid.org/chromaprint"
changelog="https://raw.githubusercontent.com/acoustid/chromaprint/master/NEWS.txt"
distfiles="https://github.com/acoustid/chromaprint/releases/download/v${version}/chromaprint-${version}.tar.gz"
checksum=a1aad8fa3b8b18b78d3755b3767faff9abb67242e01b478ec9a64e190f335e1c
if [ -z "$XBPS_CHECK_PKGS" ] || [ "$CROSS_BUILD" ]; then
configure_args+=" -DBUILD_TESTS=OFF"
fi
post_install() {
vlicense LICENSE.md LICENSE
}
chromaprint-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}