-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
71 lines (63 loc) · 1.77 KB
/
PKGBUILD
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Built from the original packaging by Daniel Bermond <dbermond@archlinux.org>
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# Maintainer: Ross Clark <https://github.com/orgs/Archiv8/chromaprint-fftw/discussions>
# Contributor: Ross Clark <https://github.com/orgs/Archiv8/chromaprint-fftw/discussions>
pkgname="chromaprint-fftw"
pkgver=1.5.1
pkgrel=1
pkgdesc="Library for extracting fingerprints from any audio source (uses fftw for FFT calculations instead of ffmpeg)"
arch=(
"x86_64"
)
url="https://acoustid.org/chromaprint"
license=(
"GPL"
)
depends=(
# Official Arch Linux repositories
"fftw"
# Official Arch Linux repositories / AUR /Archiv8
"ffmpeg"
)
makedepends=(
# Official Arch Linux repositories
"cmake"
"gtest"
)
provides=(
"chromaprint"
"libchromaprint.so"
)
conflicts=(
"chromaprint"
)
source=(
"https://github.com/acoustid/chromaprint/archive/v${pkgver}/chromaprint-${pkgver}.tar.gz")
sha256sums=(
"a1aad8fa3b8b18b78d3755b3767faff9abb67242e01b478ec9a64e190f335e1c"
)
build() {
cmake -B build -S "chromaprint-${pkgver}" \
-DCMAKE_BUILD_TYPE:STRING="None" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
-DBUILD_TESTS:BOOL="ON" \
-DBUILD_TOOLS:BOOL="OFF" \
-DFFT_LIB:STRING="fftw3" \
-DGTEST_SOURCE_DIR:PATH="/usr/src/googletest" \
-Wno-dev
make -C build
}
check() {
make -C build check
}
package() {
make -C build DESTDIR="$pkgdir" install
}