# Contributor: Sören Tempel # Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=mkvtoolnix pkgver=35.0.0 pkgrel=1 pkgdesc="Set of tools to create, edit and inspect Matroska files" url="https://mkvtoolnix.download/index.html" arch="all" license="GPL-2.0-only" makedepends="boost-dev docbook-xsl file-dev flac-dev gtest-dev libmatroska-dev libogg-dev libvorbis-dev ruby-json ruby-rake zlib-dev qt5-qtbase-dev qt5-qtmultimedia-dev cmark-dev" subpackages="$pkgname-doc $pkgname-gui" source="https://mkvtoolnix.download/sources/$pkgname-$pkgver.tar.xz" build() { ./configure CC="${CC:-gcc}" CFLAGS="${CFLAGS}" \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --without-gettext rake V=1 -j${JOBS} } check() { rake V=1 -j${JOBS} tests:unit rake V=1 -j${JOBS} tests:run_unit } package() { rake DESTDIR="$pkgdir" install } gui() { pkgdesc="$pkgdesc (GUI)" depends="$pkgname qt5-qtmultimedia" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/mkvtoolnix-gui "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/share "$subpkgdir"/usr/ } sha512sums="aa109be9da3f0bd119d9315b9ea136d3c1532d0f351c5a052dcc7ad67a4dcec9d8fec69a0c9358790abfcb6eeaee47fad4af2a0506bef39cfd5c8466f90bdf98 mkvtoolnix-35.0.0.tar.xz"