blob: c2edd9d0332dcc047d2acf27da938c937af6ac0a (
plain)
1 # Description: Audio fingerprinting library.
2 # URL: https://acoustid.org/chromaprint
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: cmake ffmpeg ninja
5 # Optional: fftw
6
7 name=chromaprint
8 version=1.5.1
9 release=1
10 source=(https://github.com/acoustid/chromaprint/releases/download/v$version/$name-$version.tar.gz)
11
12 build() {
13 cmake -S $name-$version -B build -G Ninja \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_BUILD_TYPE=RELEASE \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -D BUILD_TESTS=OFF \
19 -Wno-dev
20
21 cmake --build build
22 DESTDIR=$PKG cmake --install build
23 }
|