void-packages/srcpkgs/nlopt/template
2017-06-25 16:43:03 +00:00

28 lines
728 B
Bash

# Template file for 'nlopt'
pkgname=nlopt
version=2.4.2
revision=1
build_style=gnu-configure
configure_args="--enable-shared"
short_desc="Free/open-source library for nonlinear optimization"
maintainer="Michael Gehring <mg@ebfe.org>"
license="MIT"
homepage="http://ab-initio.mit.edu/wiki/index.php/NLopt"
distfiles="http://ab-initio.mit.edu/nlopt/nlopt-${version}.tar.gz"
checksum=8099633de9d71cbc06cd435da993eb424bbcdbded8f803cdaa9fb8c6e09c8e89
post_install() {
vlicense COPYING
}
nlopt-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/man
}
}