mkvtoolnix: move mkvtoolnix-gui to separate package, build cross

This commit is contained in:
Matthias von Faber 2019-12-14 12:04:27 +01:00 committed by Juan RP
parent a6d0ae37d8
commit ef80ab18de
2 changed files with 19 additions and 2 deletions

1
srcpkgs/mkvtoolnix-gui Symbolic link
View file

@ -0,0 +1 @@
mkvtoolnix

View file

@ -1,11 +1,11 @@
# Template file for 'mkvtoolnix'
pkgname=mkvtoolnix
version=41.0.0
revision=1
revision=2
build_style=gnu-configure
build_helper=qmake
configure_args="--with-docbook-xsl-root=/usr/share/xsl/docbook --enable-qt"
hostmakedepends="autoconf docbook-xsl libxslt pkg-config ruby"
hostmakedepends="autoconf docbook-xsl libxslt pkg-config qt5-tools-devel ruby"
makedepends="boost-devel cmark-devel file-devel json-c++
libflac-devel libmatroska-devel libvorbis-devel pugixml-devel
qt5-multimedia-devel qt5-tools-devel"
@ -30,3 +30,19 @@ do_build() {
do_install() {
rake DESTDIR=${DESTDIR} install
}
mkvtoolnix-gui_package() {
short_desc+=" - Qt GUI"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/bin/mkvtoolnix-gui
vmove usr/share/applications
for file in "${DESTDIR}"/usr/share/icons/hicolor/*/apps/mkvtoolnix-gui.png; do
vmove "${file/${DESTDIR}\//}"
done
vmove usr/share/man/man1/mkvtoolnix-gui.1
vmove usr/share/metainfo
vmove usr/share/mime/packages
vmove usr/share/mkvtoolnix/sounds
}
}