# Template file for 'kodi-addon-pvr-hts'
pkgname=kodi-addon-pvr-hts
version=21.2.5
revision=1
_kodi_release=Omega
build_style=cmake
makedepends="kodi-devel kodi-platform-devel p8-platform-devel"
short_desc="Tvheadend HTSP client addon for Kodi"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/kodi-pvr/pvr.hts"
distfiles="https://github.com/kodi-pvr/pvr.hts/archive/${version}-${_kodi_release}.tar.gz"
checksum=c54c249a4c91091e47245b406210224aa4e3c5468497eb9cdeb09cd336cab4b2

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" musl-legacy-compat"
fi

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
