void-packages/srcpkgs/nlopt/template

28 lines
666 B
Bash

# Template file for 'nlopt'
pkgname=nlopt
version=2.7.1
revision=1
build_style=cmake
short_desc="FOSS library for nonlinear optimization"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://nlopt.readthedocs.io"
distfiles="https://github.com/stevengj/nlopt/archive/v${version}.tar.gz"
checksum=db88232fa5cef0ff6e39943fc63ab6074208831dc0031cf1545f6ecd31ae2a1a
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
}
}