[arch-commits] Commit in nlopt/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 11:28:53 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:28:53
  Author: felixonmars
Revision: 1059209

archrelease: copy trunk to community-staging-x86_64

Added:
  nlopt/repos/community-staging-x86_64/
  nlopt/repos/community-staging-x86_64/PKGBUILD
    (from rev 1059208, nlopt/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: nlopt/repos/community-staging-x86_64/PKGBUILD (from rev 1059208, nlopt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-01 11:28:53 UTC (rev 1059209)
@@ -0,0 +1,30 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=nlopt
+pkgver=2.7.0
+pkgrel=3
+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=('b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f')
+
+build() {
+    cmake -B build -S ${pkgname}-${pkgver} \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=lib
+    make -C build
+}
+
+check() {
+    cd build
+    ctest --output-on-failure
+}
+
+package() {
+    make -C build DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list