48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Template file for 'mkvtoolnix'
|
|
pkgname=mkvtoolnix
|
|
version=41.0.0
|
|
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 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"
|
|
short_desc="Create, alter and inspect Matroska videos"
|
|
maintainer="Matthias von Faber <mvf@gmx.eu>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.bunkus.org/videotools/mkvtoolnix/"
|
|
changelog="https://mkvtoolnix.download/doc/NEWS.md"
|
|
distfiles="https://www.bunkus.org/videotools/${pkgname}/sources/${pkgname}-${version}.tar.xz"
|
|
checksum=7cdd6ad9144324162604172b7e96cb13cdbb7913e07c4ad7633344aac20e4103
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-boost=${XBPS_CROSS_BASE}/usr"
|
|
fi
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
do_build() {
|
|
rake ${makejobs}
|
|
}
|
|
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
|
|
}
|
|
}
|