void-packages/srcpkgs/mediainfo/template

52 lines
1.4 KiB
Bash

# Template file for 'mediainfo'
pkgname=mediainfo
version=21.09
revision=1
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=7b8fd9a502ec64afe1315072881b6385ba57ca69f2f82c625b1672e151c50c57
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
}
}