61 lines
1.8 KiB
Bash
61 lines
1.8 KiB
Bash
# Template file for 'mkvtoolnix'
|
|
pkgname=mkvtoolnix
|
|
version=85.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="qmake6"
|
|
configure_args="--with-docbook-xsl-root=/usr/share/xsl/docbook --disable-update-check"
|
|
hostmakedepends="autoconf docbook-xsl gettext libxslt pkg-config po4a qt6-base qt6-tools ruby"
|
|
makedepends="boost-devel cmark-devel file-devel fmt-devel gmp-devel json-c++
|
|
libdvdread-devel libflac-devel libmatroska-devel libvorbis-devel pcre2-devel
|
|
pugixml-devel qt6-base-devel qt6-multimedia-devel qt6-svg-devel qt6-tools-devel"
|
|
checkdepends="gtest-devel"
|
|
short_desc="Create, alter and inspect Matroska videos"
|
|
maintainer="Matthias von Faber <mvf@gmx.eu>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://mkvtoolnix.download"
|
|
changelog="https://mkvtoolnix.download/doc/NEWS.md"
|
|
distfiles="https://mkvtoolnix.download/sources/mkvtoolnix-${version}.tar.xz"
|
|
checksum=702442c80706c7c770ac04f7b4eed7a57e9e03ead6c5e6e90b9655dd84c8d829
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-boost=${XBPS_CROSS_BASE}/usr"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) broken="assembler shits itself";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
do_build() {
|
|
rake ${makejobs}
|
|
}
|
|
do_check() {
|
|
rake tests:run_unit
|
|
}
|
|
do_install() {
|
|
rake DESTDIR=${DESTDIR} install
|
|
}
|
|
|
|
mkvtoolnix-gui_package() {
|
|
short_desc+=" - Qt GUI"
|
|
depends="${sourcepkg}-${version}_${revision} qt6-svg"
|
|
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
|
|
for file in "${DESTDIR}"/usr/share/man/*/man1/mkvtoolnix-gui.1; 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
|
|
}
|
|
}
|