From 64064ca94659d8d2ec5e9f7d6a1d9e2efecb10bc Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 16 Mar 2016 22:35:33 +0100 Subject: [PATCH] New package: p8-platform-2.0.1 --- common/shlibs | 1 + srcpkgs/p8-platform-devel | 1 + srcpkgs/p8-platform/template | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 120000 srcpkgs/p8-platform-devel create mode 100644 srcpkgs/p8-platform/template diff --git a/common/shlibs b/common/shlibs index b19c699e1e9..fedc2de4965 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2128,6 +2128,7 @@ 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.2.0 platform-2.0.1_1 +libp8-platform.so.2.0 p8-platform-2.0.1_1 libfacter.so.3.0.2 facter-3.0.2_1 libOIS-1.3.0.so ois-1.3_1 libSILLY.so.1 silly-0.1.0_1 diff --git a/srcpkgs/p8-platform-devel b/srcpkgs/p8-platform-devel new file mode 120000 index 00000000000..88aebf572af --- /dev/null +++ b/srcpkgs/p8-platform-devel @@ -0,0 +1 @@ +p8-platform \ No newline at end of file diff --git a/srcpkgs/p8-platform/template b/srcpkgs/p8-platform/template new file mode 100644 index 00000000000..135e75cd32a --- /dev/null +++ b/srcpkgs/p8-platform/template @@ -0,0 +1,34 @@ +# Template file for 'p8-platform' +pkgname=p8-platform +version=2.0.1 +revision=1 +build_style=cmake +hostmakedepends="cmake" +short_desc="Platform support library used by libCEC (Pulse Eight Edition)" +maintainer="Enno Boland " +license="GPL-2" +homepage="https://github.com/Pulse-Eight/platform" +distfiles="https://github.com/Pulse-Eight/platform/archive/p8-platform-$version.tar.gz" +checksum=e97e45273e90571aa37732cde913b262f5f519c387083645d2557d7189c054cf +configure_args+=" -DBUILD_SHARED_LIBS=1" +wrksrc=platform-$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/p8-platform/p8-platform-config.cmake $DESTDIR/usr/lib/pkgconfig/p8-platform.pc + mv $DESTDIR/$wrksrc/build/lib*/* $DESTDIR/usr/lib +} + +p8-platform-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/p8-platform + vmove "usr/lib/*.so" + } +}