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

pkgname=dirac
pkgver=1.0.2
pkgrel=1tm
arch=x86_64
source=("http://www.diracvideo.org/download/dirac-research/dirac-$pkgver.tar.gz")
url="http://www.diracvideo.org/"
docs=('README' 'COPYING')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - a video compression format"
"Dirac is an advanced royalty-free video compression format designed"
"for a wide range of uses, from delivering low-resolution web content"
"to broadcasting HD and beyond, to near-lossless studio editing."
""
"The most important part of the Dirac project is the specification,"
"which can be found here: http://www.diracvideo.org/specifications"
)

build() {
	cd $startdir/src/${pkgname}-${pkgver}
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --enable-static=no --with-html-dir=/usr/doc/$pkgname/ || return 1
	make -j3 || return 1
	make DESTDIR=/$startdir/pkg install

	# remove api documentation
	rm -rf /$startdir/pkg/usr/share/doc/dirac/

}