# Maintainer: 
pkgname=libcdio-paranoia
pkgver=10.2.2.0.1
_pkgver="$(printf "$pkgver" | sed 's/10\.2\./10.2+/')"
pkgrel=0
pkgdesc="CD paranoia on top of libcdio"
url="https://www.gnu.org/software/libcdio/"
arch="all"
license="GPL-2.0+ AND LGPL-2.0+"
depends=""
depends_dev="ncurses-dev"
makedepends="$depends_dev libcdio-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/libcdio/$pkgname-$_pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$_pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

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

sha512sums="c4a768d11e9f62038ca8081316596c89c7fee6a314229fb42e3999757fae172a5dc167175f60d555c2442266d34fce6ce627f4124e9f3a93d0456adb09ca91f0  libcdio-paranoia-10.2+2.0.1.tar.bz2"