summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbb690e4ad24dd1867a87e7ca80e7764ea2d294c (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
43
44
45
46
# Maintainer: Eugene Cherny <iam@oscii.ru>
pkgname=essentia-git
pkgrel=1 
pkgver=r1687.52585c53
pkgdesc='Open-source library and tools for audio and music analysis,
description and synthesis. (With Python 3 bindings)'
arch=('x86_64')
url="http://essentia.upf.edu/documentation/"
license=('AGPL')
makedepends=('git' 'python' 'glibc')
depends=('fftw' 'ffmpeg' 'libsamplerate' 'taglib' 'libyaml'
         'python' 'python-numpy' 'python-yaml')
provides=('essentia')
conflicts=('essentia' 'essentia-acousticbrainz'
           'lib32-essentia-acousticbrainz')
source=('git+https://github.com/MTG/essentia.git#branch=master')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/essentia"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/essentia"
    ./waf configure      \
        --mode=release   \
        --build-static   \
        --with-cpptests  \
        --with-examples  \
        --with-python    \
        --python=$(which python)  \
        --prefix="$pkgdir/usr"
    ./waf
}

#check() {
#    cd "$srcdir/$pkgname"
#    ./waf run_tests
#    ./waf run_python_tests
#}

package() {
	cd "$srcdir/essentia"
	./waf install
}