void-packages/srcpkgs/ceres-solver/template

28 lines
793 B
Bash

# Template file for 'ceres-solver'
pkgname=ceres-solver
version=2.0.0
revision=2
build_style=cmake
configure_args="-DLIB_SUFFIX='' -DBUILD_SHARED_LIBS=ON"
makedepends="eigen glog-devel lapack-devel libgomp-devel"
short_desc="Large scale non-linear optimization library"
maintainer="Jasper Chan <jasperchan515@gmail.com>"
license="BSD-3-Clause"
homepage="http://ceres-solver.org/"
distfiles="https://github.com/ceres-solver/ceres-solver/archive/${version}.tar.gz"
checksum=2ab0348e0f65fdf43bebcd325a1c73f7e8999691ee75e2a2981281931c42e9fa
post_install() {
vlicense LICENSE
}
ceres-solver-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}