# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=zita-convolver
pkgver=4.0.3
pkgrel=1
pkgdesc="fast, partitioned convolution engine library"
url="https://kokkinizita.linuxaudio.org/linuxaudio"
arch="all"
license="GPL-3.0-only"
makedepends="fftw-dev"
subpackages="$pkgname-dev"
source="
	https://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-convolver-$pkgver.tar.bz2
	patch-Makefile.patch
	20-install-major-lib-version.patch
	"
builddir="$srcdir/$pkgname-$pkgver/source"
options="!check" # No tests

build() {
	make
}

package() {
	make LIBDIR=/usr/lib PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
62d7841757f10c094e43ed755e187f947c5743f302ed2a1ee6064a850c18921466f4505d8a2a7b3ad23619db7f1ad7307e1dfb2e8a1e7685e60ece2ffff4f6ca  zita-convolver-4.0.3.tar.bz2
15e07b06813ca336200a064734f7d2ef54cb74dfd438708675bb85b9cfd30f02c7b8c9b4e4abea368286c07a6e4e1ed5ae62cd69e6dc528e26d15cee5ff98c12  patch-Makefile.patch
6a448b36c8cbcc7cb2793b81b9a7eb0dd53af236a6a7c9b0d8ed08d8fc445d83d6fa233a1d7a2494454b34f2c4150ae9f54e2b1adf7172015635e5732a5deb67  20-install-major-lib-version.patch
"
