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

pkgname=faad2
pkgver=2.7
pkgrel=1tm
arch=x86_64
source=("http://downloads.sourceforge.net/faac/faad2-$pkgver.tar.bz2")
docs=("readme" "readme.linux" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.audiocoding.com

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"faad is an open source MPEG-4 and MPEG-2 AAC decoder"
"FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder, it is licensed"
"under the GPLv2 license."
"Features:"
"    * Portable"
"    * Reasonably fast"
"    * LC, Main, LTP, SBR, PS support"
"    * DRM support through DreaM"
)


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