# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=boca
pkgver=1.0.7
pkgrel=1
arch="all"
url="https://github.com/enzo1982/boca"
pkgdesc="A component library used by the fre:ac audio converter"
license="GPL-2.0-or-later"
makedepends="
	expat-dev
	libcdio-dev
	libcdio-paranoia-dev
	pulseaudio-dev
	smooth-dev
	uriparser-dev
	"
source="https://github.com/enzo1982/boca/archive/v$pkgver/boca-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests
builddir="$srcdir/BoCA-$pkgver"

prepare() {
	default_prepare

	find . -type f -exec sed -i 's|/usr/local|/usr|g' {} \;
}

build() {
	make
}

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

sha512sums="
c507ab1f8c1e378cb99e44008ba6234a353130015c467f29a276da200ba343834a40b82113545ef2351d39cc1749d4eeb01b32ad43cc9ed9fd00bbe1da385fa8  boca-v1.0.7.tar.gz
"
