contrib/chromaprint/Pkgfile

24 lines
619 B
Plaintext

# Description: Audio fingerprinting library.
# URL: https://acoustid.org/chromaprint
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: ffmpeg
# Optional: fftw
name=chromaprint
version=1.5.1
release=2
source=(https://github.com/acoustid/$name/releases/download/v$version/$name-$version.tar.gz)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D BUILD_TESTS=OFF \
-Wno-dev
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}