summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28824f5fdade13658491262ebc4228edb8c1d44d (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
47
48
49
50
51
52
# 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'
        'pthread_flag.patch')
md5sums=('SKIP'
         '172b1a047ab19d3a11affe47204fc540')

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

prepare() {
    patch -f "$srcdir/essentia/wscript" pthread_flag.patch
}

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
}