void-packages/srcpkgs/kodi-platform/template

30 lines
936 B
Bash

# Template file for 'kodi-platform'
pkgname=kodi-platform
version=20180302
revision=1
wrksrc=kodi-platform-kodiplatform-${version}
build_style=cmake
configure_args="-DCMAKE_INSTALL_LIBDIR=/usr/lib"
makedepends="kodi-devel tinyxml-devel p8-platform-devel"
short_desc="Kodi platform support library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/xbmc/kodi-platform"
distfiles="https://github.com/xbmc/kodi-platform/archive/kodiplatform-${version}.tar.gz"
checksum=1d8ddbe444bd42f4b6f2babb9f78d6c1e152d828eff90b07308febf883c05b38
if [ -n "${CROSS_BUILD}" ]; then
configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
fi
kodi-platform-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/lib/kodiplatform
}
}