#Packager: George Vlahavas <vlahavas~at~gmail~dot~com)

pkgname=mkvtoolnix
pkgver=5.8.0
pkgrel=1rl
source=("http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-$pkgver.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.bunkus.org/videotools/mkvtoolnix/index.html

doinst() {
# update the mime desktop database
if [ -x /usr/bin/update-desktop-database ]; then
        /usr/bin/update-desktop-database -q
fi
# update the mime database
if [ -x /usr/bin/update-mime-database ]; then
        /usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"MKVToolnix (Matroska tools)"
"MKVToolnix is a set of tools to create, alter and inspect Matroska"
"files. They do for Matroska what the OGMtools do for the OGM format"
"and then some."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux
	./drake || return 1
	./drake install DESTDIR=$startdir/pkg
}