# Contributor: Carlo Landmeter # Maintainer: pkgname=mkvtoolnix pkgver=7.8.0 pkgrel=0 pkgdesc="Set of tools to create, edit and inspect Matroska files" url="http://www.bunkus.org/videotools/mkvtoolnix/index.html" arch="all" license="GPL" depends="" depends_dev="libmatroska-dev flac-dev libvorbis-dev boost-dev zlib-dev file-dev libogg-dev" makedepends="$depends_dev autoconf automake ruby bash" install="" subpackages="$pkgname-doc" source="http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-$pkgver.tar.xz boost-1.58.patch " _builddir="$srcdir"/mkvtoolnix-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./autogen.sh || return 1 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-gui \ --without-curl \ || return 1 ./drake V=1 -j${JOBS} || return } package() { cd "$_builddir" ./drake DESTDIR="$pkgdir" install || return 1 } md5sums="91fd8f34c25b8d3980c3e39b3cb6ae6c mkvtoolnix-7.8.0.tar.xz db72bf028eeedd3029129e9c3a15a028 boost-1.58.patch" sha256sums="4ea13a75db2170944e95e180aaab97e3f0d42c04d88a0d4baadacd554248fe54 mkvtoolnix-7.8.0.tar.xz d1ea41d683732f4b20929da0efe1518d9b158e6c953923550f156ad4fc8b4bac boost-1.58.patch" sha512sums="6a56013da749fc6c661ade68a5d0fe50e710e2194f756d92cf47ccec471eb49206c14482ba1ccffedaf1ca164d3da49c3ea7f62296957bad7099baef8c7a083a mkvtoolnix-7.8.0.tar.xz fdf90f4b74c280587e63f82d5ebe0f974270e90930039d6b39bc691a1254293514be526f95360b3eecf21b9843edc36bd4f4a24816225dd63f77cee12838c1e2 boost-1.58.patch"