#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
#
pkgname=faad2
pkgver=2.10.0
pkgrel=1gv
export _underver=`echo $pkgver | tr '.' '_'`
source=("https://github.com/knik0/faad2/archive/refs/tags/${_underver}.tar.gz")
docs=("readme" "readme.linux" "install" "copying" "changelog" "authors" "news" "todo")
url=https://github.com/knik0/faad2

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-${_underver}
	./bootstrap
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-static || return 1
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}