33 lines
1 KiB
Bash
33 lines
1 KiB
Bash
# Template file for 'platform'
|
|
pkgname=platform
|
|
version=2.0.1
|
|
revision=1
|
|
build_style=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/platform-$version.tar.gz"
|
|
checksum=d83fd25fe8f48ed4d66f17fb3f7c35fcf915ca27dda9b088d61e8e3dd98f01f7
|
|
configure_args+=" -DBUILD_SHARED_LIBS=1"
|
|
wrksrc=$pkgname-$pkgname-$version
|
|
|
|
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"
|
|
}
|
|
}
|