# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=audaspace
pkgver=1.1
pkgrel=1
pkgdesc="A high level and feature rich audio library written in C++ with language bindings"
arch=("x86_64" "i686")
url="http://audaspace.github.io/"
license=('APACHE')
depends=('ffmpeg' 'openal' 'sdl2' 'libsndfile' 'jack')
makedepends=('cmake' 'python' 'python-setuptools' 'python-numpy')
optdepends=('python: python language bindings'
            'python-numpy: python language bindings')
options=('!buildflags') # use until 1.2
source=("https://github.com/audaspace/audaspace/archive/v${pkgver}.tar.gz")
md5sums=('413e5de4daf0770991275e189b24ecdd')

build() {
	cd "${pkgname}-${pkgver}"

    mkdir build
    cd build

	cmake .. \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DWITH_PYTHON=1 \
        -DWITH_JACK=1 \
        -DDEFAULT_PLUGIN_PATH=/usr/share/audaspace/plugins

	make
}

package() {
	cd "${pkgname}-${pkgver}"

    cd build

	make DESTDIR="${pkgdir}/" install
}
