# Template file for 'nlopt'
pkgname=nlopt
version=2.5.0
revision=1
build_style=cmake
configure_args="--enable-shared"
short_desc="Free/open-source library for nonlinear optimization"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="MIT"
homepage="http://ab-initio.mit.edu/wiki/index.php/NLopt"
distfiles="https://github.com/stevengj/nlopt/archive/v${version}.tar.gz"
checksum=c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae

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