void-packages/srcpkgs/nlopt/template

29 lines
716 B
Bash

# Template file for 'nlopt'
pkgname=nlopt
version=2.6.1
revision=1
build_style=cmake
configure_args="--enable-shared"
short_desc="FOSS library for nonlinear optimization"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://ab-initio.mit.edu/wiki/index.php/NLopt"
distfiles="https://github.com/stevengj/nlopt/archive/v${version}.tar.gz"
checksum=66d63a505187fb6f98642703bd0ef006fedcae2f9a6d1efa4f362ea919a02650
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
}
}