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

pkgname=schroedinger
pkgver=1.0.7
pkgrel=1tm
arch=i686
source=("http://www.diracvideo.org/download/schroedinger/schroedinger-$pkgver.tar.gz")
sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/
url="http://www.diracvideo.org/"
docs=('AUTHORS' 'COPYING*' 'NEWS' 'TODO')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - Library for en/de-coding video in the Dirac format"
"Library for decoding and encoding video in the Dirac format. It is"
"implemented in ANSI C and optimized through the us of liboil. libschro"
"is written as a collaboration between the BBC Research and"
"Development, David Schleef and Fluendo."
)

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

	# remove html documentation
	rm -rf /$startdir/pkg/usr/share/doc/schroedinger
}