void-packages/srcpkgs/mediainfo/template
2021-03-28 15:14:48 +02:00

52 lines
1.4 KiB
Bash

# Template file for 'mediainfo'
pkgname=mediainfo
version=21.03
revision=1
wrksrc=MediaInfo
configure_args="--with-wx-config=wx-config-gtk3"
hostmakedepends="automake libtool pkg-config"
makedepends="libmediainfo-devel zlib-devel wxWidgets-gtk3-devel"
depends="desktop-file-utils hicolor-icon-theme mediainfo-cli"
short_desc="Display technical and tag data for video and audio files"
maintainer="John <me@johnnynator.dev>"
license="BSD-2-Clause"
homepage="https://mediaarea.net/MediaInfo"
distfiles="https://mediaarea.net/download/source/${pkgname}/${version}/${pkgname}_${version}.tar.xz"
checksum=de50ca0b2c607b8999d3c9e542d27c97030a59f31859b612335315be6850021e
replaces="mediainfo-gui>=0"
do_configure() {
for d in CLI GUI; do
cd $wrksrc/Project/GNU/$d
autoreconf -fi
./configure ${configure_args}
done
}
do_build() {
for d in CLI GUI; do
cd $wrksrc/Project/GNU/$d
make ${makejobs}
done
}
do_install() {
cd $wrksrc/Project/GNU/GUI
make DESTDIR="${DESTDIR}" install
vinstall ${wrksrc}/Source/Resource/Image/MediaInfo.svg 644 \
usr/share/icons/hicolor/scalable/apps mediainfo.svg
vinstall ${wrksrc}/Source/Resource/Image/MediaInfo.png 644 \
usr/share/pixmaps mediainfo-gui.png
vinstall ${wrksrc}/Project/GNU/GUI/mediainfo-gui.desktop 644 \
usr/share/applications
}
mediainfo-cli_package() {
short_desc+=" - CLI"
pkg_install() {
cd ${wrksrc}/Project/GNU/CLI
make DESTDIR="${PKGDESTDIR}" install
vlicense ${wrksrc}/License.html
}
}