From dd58b7c5963a102d7e66da409d2ea391745f8894 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Wed, 28 Jun 2017 16:42:26 +0100 Subject: [PATCH] New package: libArcus-2.7.0 --- common/shlibs | 1 + srcpkgs/libArcus-devel | 1 + srcpkgs/libArcus-python3 | 1 + .../patches/cmake-cross-find-sip.patch | 18 +++++++++++ srcpkgs/libArcus/template | 32 +++++++++++++++++++ 5 files changed, 53 insertions(+) create mode 120000 srcpkgs/libArcus-devel create mode 120000 srcpkgs/libArcus-python3 create mode 100644 srcpkgs/libArcus/patches/cmake-cross-find-sip.patch create mode 100644 srcpkgs/libArcus/template diff --git a/common/shlibs b/common/shlibs index fa0e596db48..5c61034c71a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2859,3 +2859,4 @@ libtracker-sparql-2.0.so.0 libtracker-2.0.0_1 libdockapp.so.3 libdockapp-0.7.2_1 libkrdccore.so.5 krdc-17.04.3_1 libkrfbprivate.so.5.0 krfb-17.08.1_1 +libArcus.so.3 libArcus-2.7.0_1 diff --git a/srcpkgs/libArcus-devel b/srcpkgs/libArcus-devel new file mode 120000 index 00000000000..9ceef3bc1c0 --- /dev/null +++ b/srcpkgs/libArcus-devel @@ -0,0 +1 @@ +libArcus \ No newline at end of file diff --git a/srcpkgs/libArcus-python3 b/srcpkgs/libArcus-python3 new file mode 120000 index 00000000000..9ceef3bc1c0 --- /dev/null +++ b/srcpkgs/libArcus-python3 @@ -0,0 +1 @@ +libArcus \ No newline at end of file diff --git a/srcpkgs/libArcus/patches/cmake-cross-find-sip.patch b/srcpkgs/libArcus/patches/cmake-cross-find-sip.patch new file mode 100644 index 00000000000..bf2a123962c --- /dev/null +++ b/srcpkgs/libArcus/patches/cmake-cross-find-sip.patch @@ -0,0 +1,18 @@ +When cross compiling in void, FIND_FILE fails to find the python +script used to configure SIP. + +diff --git cmake/FindSIP.cmake cmake/FindSIP.cmake +--- cmake/FindSIP.cmake ++++ cmake/FindSIP.cmake +@@ -37,10 +37,8 @@ IF(SIP_VERSION) + SET(SIP_FOUND TRUE) + ELSE(SIP_VERSION) + +- FIND_FILE(_find_sip_py FindSIP.py PATHS ${CMAKE_MODULE_PATH}) +- + SET(ENV{PYTHONPATH} ${CMAKE_INSTALL_PREFIX}/${PYTHON_SITE_PACKAGES_DIR}) +- EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_sip_py} ++ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/cmake/FindSIP.py + OUTPUT_VARIABLE sip_config + RESULT_VARIABLE sip_config_returncode) + IF(sip_config_returncode EQUAL 0) diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template new file mode 100644 index 00000000000..c7cf6d72e90 --- /dev/null +++ b/srcpkgs/libArcus/template @@ -0,0 +1,32 @@ +# Template file for 'libArcus' +pkgname=libArcus +version=2.7.0 +revision=1 +build_style=cmake +configure_args="-DBUILD_EXAMPLES=OFF" +hostmakedepends="protobuf python3 python3-sip-devel" +makedepends="protobuf-devel python3-devel" +depends="python3-sip" +short_desc="Communication library for Ultimaker software components" +maintainer="Karl Nilsson " +license="AGPL-3" +homepage="https://github.com/Ultimaker/libArcus" +distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz" +checksum=18905c627291858ec97f69b2e730d8ce847dd76813150fa6658aaece2d1485fb + +libArcus-devel_package() { + depends="${sourcepkg}-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/*.so + } +} + +libArcus-python3_package() { + short_desc+=" - Python3 bindings" + pkg_install() { + vmove usr/lib/python3* + } +}