#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=libebml
pkgver=0.7.8
pkgrel=1gv
arch=x86_64
source=(http://dl.matroska.org/downloads/libebml/libebml-$pkgver.tar.bz2)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "license*")
url=http://www.bunkus.org/videotools/mkvtoolnix/index.html

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libebml is a C++ libary to parse EBML files"
"libebml allows to read and write files using EBML (the Extensible"
"Binary Meta Language), a binary pendant to XML."
)


build() {
	cd $startdir/src/$pkgname-$pkgver/make/linux
	sed -i "s|prefix=/usr/local|prefix=/usr|g" Makefile
	sed -i "s|/lib|/lib${LIBDIRSUFFIX}|" Makefile
	make || return 1
	make install prefix=$startdir/pkg/usr
}