Skip to content

Commit 8cd5e16

Browse files
🎉 INIT: Initialize repository
Initialize repository and upload files ready for tracking changes when editing On branch main - Changes to be committed: - new file: .SRCINFO - new file: PKGBUILD
0 parents  commit 8cd5e16

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

.SRCINFO

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pkgbase = chromaprint-fftw
2+
pkgdesc = Library for extracting fingerprints from any audio source (uses fftw for FFT calculations instead of ffmpeg)
3+
pkgver = 1.5.1
4+
pkgrel = 1
5+
url = https://acoustid.org/chromaprint
6+
arch = x86_64
7+
license = GPL
8+
makedepends = cmake
9+
makedepends = gtest
10+
depends = fftw
11+
depends = ffmpeg
12+
provides = chromaprint
13+
provides = libchromaprint.so
14+
conflicts = chromaprint
15+
source = https://github.com/acoustid/chromaprint/archive/v1.5.1/chromaprint-1.5.1.tar.gz
16+
sha256sums = a1aad8fa3b8b18b78d3755b3767faff9abb67242e01b478ec9a64e190f335e1c
17+
18+
pkgname = chromaprint-fftw

PKGBUILD

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/bin/bash
2+
3+
# Disable various shellcheck rules that produce false positives in this file.
4+
# Repository rules should be added to the .shellcheckrc file located in the
5+
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
6+
# and https://archiv8.github.io for further information.
7+
# shellcheck disable=SC2034,SC2154
8+
9+
# Maintainer: Francesco Masala <[email protected]>
10+
# Contributor: Francesco Masala <[email protected]>
11+
# Contributor: Ross Clark <[email protected]>
12+
13+
14+
pkgname=chromaprint-fftw
15+
pkgver=1.5.1
16+
pkgrel=1
17+
pkgdesc="Library for extracting fingerprints from any audio source (uses fftw for FFT calculations instead of ffmpeg)"
18+
arch=("x86_64")
19+
url="https://acoustid.org/chromaprint"
20+
license=("GPL")
21+
depends=(
22+
# Official Arch Linux repositories
23+
"fftw"
24+
"ffmpeg"
25+
)
26+
makedepends=(
27+
# Official Arch Linux repositories
28+
"cmake"
29+
"gtest"
30+
)
31+
provides=(
32+
"chromaprint"
33+
"libchromaprint.so"
34+
)
35+
conflicts=("chromaprint")
36+
source=(
37+
"https://github.com/acoustid/chromaprint/archive/v${pkgver}/chromaprint-${pkgver}.tar.gz")
38+
39+
sha256sums=(
40+
"a1aad8fa3b8b18b78d3755b3767faff9abb67242e01b478ec9a64e190f335e1c"
41+
)
42+
43+
build() {
44+
cmake -B build -S "chromaprint-${pkgver}" \
45+
-DCMAKE_BUILD_TYPE:STRING="None" \
46+
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
47+
-DBUILD_TESTS:BOOL="ON" \
48+
-DBUILD_TOOLS:BOOL="OFF" \
49+
-DFFT_LIB:STRING="fftw3" \
50+
-DGTEST_SOURCE_DIR:PATH="/usr/src/googletest" \
51+
-Wno-dev
52+
make -C build
53+
}
54+
55+
check() {
56+
make -C build check
57+
}
58+
59+
package() {
60+
make -C build DESTDIR="$pkgdir" install
61+
}

0 commit comments

Comments
 (0)