33 lines
1,016 B
Bash
33 lines
1,016 B
Bash
# Template file for 'platform'
|
|
pkgname=platform
|
|
version=1.0.10
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="cmake"
|
|
short_desc="Platform support library used by libCEC and binary add-ons for Kodi"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="https://github.com/Pulse-Eight/platform"
|
|
distfiles="https://github.com/Pulse-Eight/platform/archive/$version.tar.gz"
|
|
checksum=6ba3239cb1c0a5341efcf9488f4d3dfad8c26d6b2994b2b2247e5a61568ab5cd
|
|
configure_args+=" -DBUILD_SHARED_LIBS=1"
|
|
|
|
post_install() {
|
|
vmkdir usr/lib
|
|
if [ -d $DESTDIR/usr/lib64 ]; then
|
|
mv $DESTDIR/usr/lib64/* $DESTDIR/usr/lib
|
|
fi
|
|
sed -i "s#$wrksrc/build/##" $DESTDIR/usr/lib/platform/platform-config.cmake $DESTDIR/usr/lib/pkgconfig/platform.pc
|
|
mv $DESTDIR/$wrksrc/build/lib*/* $DESTDIR/usr/lib
|
|
}
|
|
|
|
platform-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/platform
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|