# Template file for 'deepin-movie-reborn'
pkgname=deepin-movie-reborn
version=3.2.10
revision=1
build_style=cmake
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
makedepends="dtkwidget-devel ffmpegthumbnailer-devel libdvdnav-devel mpv-devel
 pulseaudio-devel qt5-declarative-devel qt5-plugin-mysql qt5-plugin-odbc
 qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds qt5-svg-devel qt5-tools-devel
 qt5-x11extras-devel xcb-util-wm-devel"
depends="qt5integration"
short_desc="Deepin Movie Player"
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-or-later"
homepage="https://github.com/linuxdeepin/deepin-movie-reborn"
changelog="https://github.com/linuxdeepin/deepin-movie-reborn/blob/${version}/CHANGELOG.md"
distfiles="https://github.com/linuxdeepin/deepin-movie-reborn/archive/${version}.tar.gz"
checksum=dc5953c0c0784931aac8cfe8a2b9fc559bbbad8c8e37be819a3108a33eea2702

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" dtkcore-devel"
fi

case $XBPS_TARGET_MACHINE in
	arm*) broken="https://travis-ci.org/void-linux/void-packages/jobs/394936356";;
esac

deepin-movie-reborn-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/lib/pkgconfig
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}
