summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69dcdc4c656c5172721fc86961592072d25ac493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Daniel Bermond < gmail-com: danielbermond >

pkgname=chromaprint-fftw
pkgver=1.4.3
pkgrel=5
pkgdesc='Extracts fingerprints from any audio source (uses fftw for FFT calculations instead of ffmpeg)'
arch=('x86_64')
url='https://acoustid.org/chromaprint'
license=('GPL')
makedepends=('cmake' 'gtest')
depends=('fftw')
provides=('chromaprint')
conflicts=('chromaprint')
source=("chromaprint-${pkgver}.tar.gz"::"https://github.com/acoustid/chromaprint/archive/v${pkgver}.tar.gz")
sha256sums=('d4ae6596283aad7a015a5b0445012054c634a4b9329ecb23000cd354b40a283b')

build() {
    cd "chromaprint-${pkgver}"
    
    cmake \
        -DBUILD_TESTS:BOOL='ON' \
        -DBUILD_TOOLS:BOOL='OFF' \
        -DCMAKE_BUILD_TYPE:STRING='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -DFFT_LIB:STRING='fftw3' \
        -Wno-dev \
        .
        
    make
}

check() {
    cd "chromaprint-${pkgver}"
    
    make check
}

package() {
    cd "chromaprint-${pkgver}"
    
    make DESTDIR="$pkgdir" install
}