Date: Saturday, April 8, 2023 @ 03:11:57
Author: felixonmars
Revision: 1441571
archrelease: copy trunk to community-staging-x86_64
Added:
nlopt/repos/community-staging-x86_64/
nlopt/repos/community-staging-x86_64/PKGBUILD
(from rev 1441570, nlopt/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: nlopt/repos/community-staging-x86_64/PKGBUILD (from rev 1441570,
nlopt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-08 03:11:57 UTC (rev 1441571)
@@ -0,0 +1,29 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+pkgname=nlopt
+pkgver=2.7.1
+pkgrel=6
+pkgdesc="Nonlinear optimization library"
+arch=(x86_64)
+url="https://nlopt.readthedocs.io/en/latest/"
+license=(LGPL)
+depends=(gcc-libs)
+makedepends=(cmake python-numpy octave guile swig)
+optdepends=('python-numpy: to use with python')
+source=(https://github.com/stevengj/nlopt/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('db88232fa5cef0ff6e39943fc63ab6074208831dc0031cf1545f6ecd31ae2a1a')
+
+build() {
+ cmake -B build -S ${pkgname}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
+}
+
+check() {
+ cd build
+ ctest --output-on-failure
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+}