# Template file for 'nlopt'
pkgname=nlopt
version=2.10.0
revision=1
build_style=cmake
short_desc="FOSS library for nonlinear optimization"
maintainer="Vincent Legoll <vincent.legoll@gmail.com>"
license="MIT"
homepage="https://nlopt.readthedocs.io"
distfiles="https://github.com/stevengj/nlopt/archive/v${version}.tar.gz"
checksum=506f83a9e778ad4f204446e99509cb2bdf5539de8beccc260a014bd560237be1

post_install() {
	vlicense COPYING
}

nlopt-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove "usr/lib/*.so"
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/cmake
		vmove usr/share/man
	}
}
