# Description: Library for decoding ATSC A/52 streams.
# URL: https://liba52.sourceforge.io/
# Maintainer: Danny Rawlins, crux at romster dot me

name=liba52
version=0.8.0
release=7
source=(https://distfiles.adelielinux.org/source/a52dec/a52dec-$version.tar.gz)

build() {
	cd a52dec-$version

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-solaris-audio \
		--disable-win \
		--enable-shared \
		--with-pic

	make
	make DESTDIR=$PKG install
	install -m644 liba52/a52_internal.h $PKG/usr/include/a52dec/
}
