summaryrefslogtreecommitdiff
path: root/repo/chromaprint/chromaprint.xibuild
blob: e3f49398fb8b44a57cce5a5d374d5a53f78ed154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

NAME="chromaprint"
DESC="C library for generating audio fingerprints used by AcoustID"

MAKEDEPS="cmake fftw ffmpeg4 ninja"

PKG_VER=1.5.1
SOURCE="https://github.com/acoustid/chromaprint/archive/v$PKG_VER.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DBUILD_TOOLS=ON .
	cmake --build build
}

package() {
	DESTDIR="$PKG_DEST" cmake --install build
}