#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
#Previous packager: Dimitris Tzemos <djemos@slackel.gr>

pkgname=celt
pkgver=0.11.1
pkgrel=1rl
source=("http://downloads.us.xiph.org/releases/celt/celt-$pkgver.tar.gz")
docs=("AUTHORS" "ChangeLog" "COPYING" "INSTALL" "NEWS" "README" "TODO")
url=http://www.celt-codec.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"celt (low delay audio codec)"
"CELT is a very low delay audio codec designed for high-quality"
"communications. Traditional full-bandwidth  codecs such as Vorbis and"
"AAC can offer high quality but they require codec delays of hundreds"
"of milliseconds, which makes them unsuitable  for real-time"
"interactive applications like teleconferencing. Speech targeted"
"codecs, such as Speex or G.722, have lower 20-40ms delays but their"
"speech focus and limited sampling rates restricts their quality,"
"especially for music."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr  --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
	chown -R root:root $startdir/pkg
}