summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cd46d60a3d2142894094f9bf6fda18de960aef8 (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
# Maintainer: Wieland Hoffmann <the_mineo@web.de>
pkgname=chromaprint-git
pkgver=v1.3.1.r5.9e30d9c
pkgrel=1
pkgdesc="Client library, written in C++, for extracting audio fingerprints. "
arch=('i686' 'x86_64')
url="http://wiki.acoustid.org/wiki/Chromaprint"
license=('LGPL')
provides=('chromaprint')
conflicts=('chromaprint-bzr' 'chromaprint')
depends=('ffmpeg')
makedepends=('git' 'cmake')
source=('git+https://bitbucket.org/acoustid/chromaprint.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/chromaprint"
    printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
    cd "$srcdir/chromaprint"
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_EXAMPLES=ON .
}

package() {
    cd "$srcdir/chromaprint"
    make DESTDIR="$pkgdir/" install
}