35 lines
898 B
Bash
35 lines
898 B
Bash
# Template file for 'libSavitar'
|
|
pkgname=libSavitar
|
|
version=4.6.2
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="python3"
|
|
makedepends="python3-sip-devel python3-devel pugixml-devel"
|
|
short_desc="C++ implementation of 3mf loading"
|
|
maintainer="Karl Nilsson <karl.robert.nilsson@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=894a94aa26b41f3cc3ec197a4e5b5918e463af443d7016df062c9c1cb860a8c1
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" python3-sip-devel"
|
|
fi
|
|
|
|
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}
|
|
}
|
|
}
|