New package: libArcus-2.7.0

This commit is contained in:
Rui Abreu Ferreira 2017-06-28 16:42:26 +01:00 committed by Michael Aldridge
parent 3c9a1eba44
commit dd58b7c596
5 changed files with 53 additions and 0 deletions

View File

@ -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

1
srcpkgs/libArcus-devel Symbolic link
View File

@ -0,0 +1 @@
libArcus

1
srcpkgs/libArcus-python3 Symbolic link
View File

@ -0,0 +1 @@
libArcus

View File

@ -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)

32
srcpkgs/libArcus/template Normal file
View File

@ -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 <karl.robert.nilsson@gmail.com>"
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*
}
}