# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=mediainfo pkgver=23.07 pkgrel=0 pkgdesc="Supplies technical and tag information about media files" url="https://mediaarea.net/en/MediaInfo" arch="all" license="BSD-2-Clause" makedepends=" autoconf automake libmediainfo-dev~=${pkgver%.*} libtool libzen-dev wxwidgets-dev " subpackages="$pkgname-gui" source="https://mediaarea.net/download/source/mediainfo/$pkgver/mediainfo_$pkgver.tar.xz" builddir="$srcdir/MediaInfo" _clidir="$builddir/Project/GNU/CLI" _guidir="$builddir/Project/GNU/GUI" prepare() { default_prepare rm -Rf "$builddir"/Project/MS* cd "$_clidir" sh ./autogen.sh cd "$_guidir" sh ./autogen.sh } build() { export CFLAGS="$CFLAGS -flto=auto" export CXXFLAGS="$CXXFLAGS -flto=auto" cd "$_clidir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc \ --enable-static=no make cd "$_guidir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc make } check() { cd "$_clidir" ./mediainfo --version } package() { pkgdesc="$pkgdesc (CLI)" make -C "$_clidir" DESTDIR="$pkgdir" install make -C "$_guidir" DESTDIR="$pkgdir" install cd "$pkgdir" # legacy rm -r usr/share/pixmaps rm -r usr/share/kde4 } gui() { pkgdesc="$pkgdesc (GUI)" amove \ usr/bin/mediainfo-gui \ usr/share } sha512sums=" 88b6e7a6a8c978ca910e08e24016f743de98f811b2f1734318560adb91202c1afe0557dc0fbf6b037b0e26fdc33dae4d1ad8cd5878a18b79532e7916a4640f45 mediainfo_23.07.tar.xz "