# 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*
	}
}
