# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=dsp
pkgver=2.0
pkgrel=0
pkgdesc="Audio processing program with an interactive mode"
url="https://github.com/bmc0/dsp"
arch="all"
license="ISC"
makedepends="
	alsa-lib-dev
	ffmpeg-dev
	fftw-dev
	ladspa-dev
	libao-dev
	libmad-dev
	libsndfile-dev
	libtool
	pulseaudio-dev
	zita-convolver-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/bmc0/dsp/archive/v$pkgver/dsp-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	./configure --prefix=/usr # not a GNU autoconf
	make
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dvm755 scripts/* -t "$pkgdir"/usr/bin/
}

sha512sums="
0036bebe15997b9b4bf99f2c9a667209b181097e6193fc57c69e1b0ce441a33ac682c8043002fda661d8c51d9112baaa5c4b1f7590918000d6687952610b417c  dsp-2.0.tar.gz
"
