diff --git a/common/shlibs b/common/shlibs index b547bf60da..2d6194918f 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2095,3 +2095,4 @@ libtbbmalloc_debug.so.2 tbb-4.3_1 libembree.so.2 embree-2.5.1_1 libgtkimageview.so.0 gtkimageview-1.6.4_1 libgoocanvas.so.3 goocanvas1-1.0.0_1 +libplatform.so.1.0 platform-1.0.10_1 diff --git a/srcpkgs/platform-devel b/srcpkgs/platform-devel new file mode 120000 index 0000000000..fdf623f16a --- /dev/null +++ b/srcpkgs/platform-devel @@ -0,0 +1 @@ +platform \ No newline at end of file diff --git a/srcpkgs/platform/template b/srcpkgs/platform/template new file mode 100644 index 0000000000..ef6cd32dd7 --- /dev/null +++ b/srcpkgs/platform/template @@ -0,0 +1,33 @@ +# 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 " +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" + } +}