# Template file for 'ceres-solver'
pkgname=ceres-solver
version=2.2.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
makedepends="eigen glog-devel lapack-devel libgomp-devel"
short_desc="Large scale non-linear optimization library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://ceres-solver.org/"
distfiles="https://github.com/ceres-solver/ceres-solver/archive/${version}.tar.gz"
checksum=12efacfadbfdc1bbfa203c236e96f4d3c210bed96994288b3ff0c8e7c6f350d4

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"
	}
}
