# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=mediainfo pkgver=18.05 pkgrel=0 pkgdesc="Supplies technical and tag information about media files (CLI)" url="https://mediaarea.net/en/MediaInfo" arch="all" license="BSD-2-Clause" makedepends="automake autoconf cmake libmediainfo-dev>=$pkgver libtool libzen-dev" source="https://mediaarea.net/download/source/$pkgname/$pkgver/${pkgname}_$pkgver.tar.xz" builddir="$srcdir/MediaInfo" _clidir="$builddir/Project/GNU/CLI" prepare() { default_prepare rm -Rf "$builddir"/Project/MS* cd "$_clidir" ./autogen.sh } build() { cd "$_clidir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc \ --enable-static=no make } check() { cd "$_clidir" ./mediainfo --version } package() { cd "$_clidir" make DESTDIR="$pkgdir" install } sha512sums="10ffad5828d7afe83533e6e850f7124499fe1cdce024c9f3f46c5ab2333e19d40747feea641ce0b8a8d37f9aa069db39e205d0ac2bf1f5189ee2b044d6d7e2bf mediainfo_18.05.tar.xz"