2018-12-19 17:38:32 +01:00
|
|
|
# Maintainer: Eugene Cherny <iam@oscii.ru>
|
|
|
|
# Contributor: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
pkgname=essentia-git
|
2018-12-26 03:52:24 +01:00
|
|
|
pkgrel=2
|
2018-12-19 17:38:32 +01:00
|
|
|
pkgver=r1956.c5ea2738
|
|
|
|
pkgdesc='Library and tools for audio and music analysis, description and synthesis'
|
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
|
|
|
url="http://essentia.upf.edu/documentation/"
|
|
|
|
license=('AGPL')
|
|
|
|
makedepends=('git' 'python' 'glibc')
|
2018-12-26 03:52:24 +01:00
|
|
|
depends=('fftw' 'ffmpeg' 'libsamplerate' 'taglib' 'libyaml' 'chromaprint')
|
|
|
|
optdepends=('python-six: Python bindings'
|
|
|
|
'python-numpy: Python bindings'
|
|
|
|
'python-yaml: Python bindings')
|
|
|
|
makedepends=('git' 'python-numpy' 'python-yaml')
|
|
|
|
checkdepends=('python-six')
|
2018-12-19 17:38:32 +01:00
|
|
|
provides=('essentia')
|
|
|
|
conflicts=('essentia' 'essentia-acousticbrainz'
|
|
|
|
'lib32-essentia-acousticbrainz')
|
|
|
|
source=('git+https://github.com/MTG/essentia.git#branch=master'
|
2018-12-26 03:52:24 +01:00
|
|
|
'git+https://github.com/MTG/essentia-audio.git#branch=master'
|
2018-12-19 17:38:32 +01:00
|
|
|
'0001-Allow-to-skip-adding-debug-optimization-flags.patch'
|
2018-12-26 03:52:24 +01:00
|
|
|
'0002-Allow-to-skip-msse-flags.patch'
|
|
|
|
'0003-Use-libswresample-instead-of-libavresample.patch')
|
2018-12-19 17:38:32 +01:00
|
|
|
sha256sums=('SKIP'
|
2018-12-26 03:52:24 +01:00
|
|
|
'32bc137a3ba2c17e42f5c0b2f241d4ac423ca8f2d197b2a6fad318256d516f1d'
|
|
|
|
'71c11477bdfc61f07238d36c7d944f894bfc7f12fbafa5f62fd1f95543c46fb2'
|
|
|
|
'1e9373276022a4d2c5d59642acc2b5bbc1871e76ae61902bd952fce883230dce')
|
2018-12-19 17:38:32 +01:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/essentia"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/essentia"
|
2018-12-26 03:52:24 +01:00
|
|
|
|
2018-12-19 17:38:32 +01:00
|
|
|
patch -p1 -i ../0001-Allow-to-skip-adding-debug-optimization-flags.patch
|
|
|
|
patch -p1 -i ../0002-Allow-to-skip-msse-flags.patch
|
2018-12-26 03:52:24 +01:00
|
|
|
patch -p1 -i ../0003-Use-libswresample-instead-of-libavresample.patch
|
|
|
|
|
|
|
|
# symlink audio testfiles so they can be found by the testsuite
|
|
|
|
cd test
|
|
|
|
rm -r audio
|
|
|
|
ln -s "$srcdir/essentia-audio" audio
|
2018-12-19 17:38:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/essentia"
|
|
|
|
|
|
|
|
local platform_flags=
|
|
|
|
[[ $CARCH != x86_64 ]] && [[ $CARCH != i686 ]] && \
|
|
|
|
platform_flags+='--no-msse'
|
|
|
|
|
|
|
|
./waf configure \
|
|
|
|
--mode=default \
|
|
|
|
--with-cpptests \
|
|
|
|
--with-examples \
|
|
|
|
--with-python \
|
|
|
|
--python=$(which python) \
|
|
|
|
$platform_flags \
|
|
|
|
--prefix="$pkgdir/usr"
|
|
|
|
./waf $MAKEFLAGS
|
|
|
|
}
|
|
|
|
|
2018-12-26 03:52:24 +01:00
|
|
|
check() {
|
|
|
|
cd "$srcdir/essentia"
|
|
|
|
export LD_LIBRARY_PATH="$srcdir/essentia/build/src"
|
|
|
|
./waf run_tests
|
2018-12-29 18:48:31 +01:00
|
|
|
#./waf run_python_tests
|
2018-12-26 03:52:24 +01:00
|
|
|
}
|
2018-12-19 17:38:32 +01:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/essentia"
|
|
|
|
./waf install
|
|
|
|
}
|