diff --git a/srcpkgs/kodi-addon-vfs-rar/template b/srcpkgs/kodi-addon-vfs-rar/template index 9ae75a72c86..5f36d7367ea 100644 --- a/srcpkgs/kodi-addon-vfs-rar/template +++ b/srcpkgs/kodi-addon-vfs-rar/template @@ -1,7 +1,7 @@ # Template file for 'kodi-addon-vfs-rar' pkgname=kodi-addon-vfs-rar version=4.0.0 -revision=1 +revision=2 _kodi_release=Matrix wrksrc="vfs.rar-${version}-${_kodi_release}" build_style=cmake @@ -12,4 +12,8 @@ license="GPL-2.0-or-later" homepage="https://github.com/xbmc/vfs.rar" distfiles="https://github.com/xbmc/vfs.rar/archive/${version}-${_kodi_release}.tar.gz" checksum=1111d1f90cc4addc2adb0884b779f4b47e30abb2766ba1708053e5f100b514bf -nocross="depends on kodi-platform" + +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