void-packages/srcpkgs/libSavitar/template

32 lines
863 B
Bash

# Template file for 'libSavitar'
pkgname=libSavitar
version=3.6.0
revision=1
build_style=cmake
hostmakedepends="python3"
makedepends="python3-sip-devel python3-devel pugixml-devel"
short_desc="C++ implementation of 3mf loading"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/Ultimaker/libSavitar"
distfiles="https://github.com/Ultimaker/libSavitar/archive/${version}.tar.gz"
checksum=2542fc07844987cb736b03a36e3e9ea4f1002a7ba0965852ff7d954f79969cf5
nocross="can't find sip on cross environment"
libSavitar-devel_package() {
depends="libSavitar-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}
libSavitar-python3_package() {
short_desc+=" - Python3 bindings"
pkg_install() {
vmove ${py3_sitelib}
}
}