# Template file for 'kodi-addon-pvr-zattoo'
pkgname=kodi-addon-pvr-zattoo
version=19.7.8.1
revision=3
_kodi_release=Matrix
wrksrc="pvr.zattoo-${version}-${_kodi_release}"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="kodi-devel kodi-platform-devel p8-platform-devel rapidjson
 tinyxml2-devel tinyxml-devel"
depends="kodi-addon-inputstream-adaptive"
short_desc="Kodi PVR addon for streaming live TV from zattoo"
maintainer="teldra <teldra@rotce.de>"
license="GPL-2.0-only"
homepage="https://github.com/rbuehlma/pvr.zattoo"
distfiles="https://github.com/rbuehlma/pvr.zattoo/archive/${version}-${_kodi_release}.tar.gz"
checksum=25dc4ea72b5315a65286ba606e6e26d281fb8eb830d5e0164b66b8d7ae90319a
make_check=no # No target to "make test"

if [ -n "${CROSS_BUILD}" ]; then
	configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
	configure_args+=" -DKODI_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/kodi"
fi
