# $Id: PKGBUILD 41916 2009-06-07 23:34:29Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: 03/08/04 <lefungus@altern.org>

pkgname=mkvtoolnix
pkgver=4.9.1
pkgrel=2
pkgdesc="Set of tools to create, edit and inspect Matroska files"
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
depends=('libmatroska>=1.0.0' 'libebml>=1.0.0' 'flac>=1.1.4' 'libvorbis' 'wxgtk>=2.8.0.1' 'file' 'boost' 'lzo2' 'qt')
source=("http://www.bunkus.org/videotools/${pkgname}/sources/${pkgname}-${pkgver}.tar.bz2")

build() {
  cd ${srcdir}/${pkgname}-${pkgver}/
  ./configure --prefix=/usr \
              --with-boost-libdir=/usr/lib \
              --enable-qt
  ./drake  || return 1
}
package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./drake DESTDIR=${pkgdir} install
}
md5sums=('5981f266e6d25da4a49f7464e4a97cdf')