# Contributor: Sören Tempel # Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=mkvtoolnix pkgver=41.0.0 pkgrel=0 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="fe2523d7db0a7ed18db4207e2a95a76c91cd91aa38e18542e64749bb17a2ede5aae91731aeaead922c7dffd981193f5b61060a626b91831605981bf9709499d9 mkvtoolnix-41.0.0.tar.xz"