# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=ecasound
pkgver=2.9.1
pkgrel=1
pkgdesc="Textmode multitrack audio processing"
url="https://ecasound.seul.org/ecasound/"
arch="all"
license="GPL-2.0-or-later"
makedepends="alsa-lib-dev readline-dev ncurses-dev
	mpg123-dev lame-dev libsndfile-dev libsamplerate-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://ecasound.seul.org/download/ecasound-$pkgver.tar.gz"
builddir="$srcdir"/ecasound-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}


check() {
	cd "$builddir"
	make check
}

md5sums="13c7be1e4eddc0bbf3792dc17777e465  ecasound-2.9.1.tar.gz"
sha256sums="39fce8becd84d80620fa3de31fb5223b2b7d4648d36c9c337d3739c2fad0dcf3  ecasound-2.9.1.tar.gz"
sha512sums="b91fd68cb4809fdf62b25323fbf52c9bb7de6663287d5aa2576cc4fb28e322850b7020df2718ed6087f5d9f5f96692a476287378ea65853d01834523e8eb7033  ecasound-2.9.1.tar.gz"
