#Maintainer: Thorsten Muehlfelder <thenktor@gmx.de>

pkgname=a52dec
pkgver=0.7.4
pkgrel=1tm
arch=i486
source=("http://liba52.sourceforge.net/files/a52dec-$pkgver.tar.gz")
sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/
url="http://liba52.sourceforge.net"
docs=('AUTHORS' 'COPYING' 'NEWS' 'README' 'ChangeLog')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - ATSC A/52 Decoding Library"
"Liba52 is a free library for decoding ATSC A/52 streams. It is"
"released under the terms of the GPL license. The A/52 standard is"
"used in a variety of applications, including digital television and"
"DVD. It is also known as AC-3."
""
"liba52 is distributed with a small test program, a52dec."
)

build() {
	cd $startdir/src/${pkgname}-${pkgver}
	./configure --prefix="/usr"  --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \
		--disable-static \
		--enable-shared || return 1
	make -j3 || return 1
	make DESTDIR=$startdir/pkg install
}