Date: Tuesday, February 28, 2023 @ 22:15:38
  Author: dbermond
Revision: 1405732

upgpkg: pybind11 2.10.3-3: rebuild packages signed by 
6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD

https://archlinux.org/todo/rebuild-packages-signed-by-6645b0a8c7005e78db1d7864f99ffe0feae999bd/

Modified:
  pybind11/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-28 21:48:59 UTC (rev 1405731)
+++ PKGBUILD    2023-02-28 22:15:38 UTC (rev 1405732)
@@ -4,13 +4,13 @@
 
 pkgname=pybind11
 pkgver=2.10.3
-pkgrel=2
+pkgrel=3
 pkgdesc='A lightweight header-only library that exposes C++ types in Python 
and vice versa'
 arch=('any')
 url='https://pybind11.readthedocs.org/'
 license=('BSD')
-optdepends=('python: for python bindings')
-makedepends=('cmake' 'boost' 'eigen' 'python' 'python-setuptools' 
'python-pytest')
+optdepends=('python-setuptools: for python bindings')
+makedepends=('cmake' 'boost' 'catch2' 'eigen' 'python-setuptools' 
'python-pytest')
              #'python-sphinx' 'python-sphinx_rtd_theme' 'python-breathe')
 checkdepends=('python-numpy' 'python-scipy')
 
source=("https://github.com/pybind/pybind11/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz";)
@@ -24,6 +24,7 @@
     cmake \
         -B "${srcdir}/build-cmake" \
         -S "${srcdir}/${pkgname}-${pkgver}" \
+        -G 'Unix Makefiles' \
         -DCMAKE_BUILD_TYPE:STRING='None' \
         -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
         -Wno-dev
@@ -44,9 +45,10 @@
     # symlinks
     local _pyver
     _pyver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')"
-    install -d -m755 "${pkgdir}/usr"/{include,lib/cmake}
+    install -d -m755 "${pkgdir}/usr"/{include,lib/{cmake,pkgconfig}}
     ln -s "../lib/python${_pyver}/site-packages/pybind11/include/pybind11" 
"${pkgdir}/usr/include/pybind11"
     ln -s 
"../../lib/python${_pyver}/site-packages/pybind11/share/cmake/pybind11" 
"${pkgdir}/usr/lib/cmake/pybind11"
+    ln -s 
"../../lib/python${_pyver}/site-packages/pybind11/share/pkgconfig/pybind11.pc" 
"${pkgdir}/usr/lib/pkgconfig/pybind11.pc"
     
     # man page
     # install -D -m644 "docs/.build/man/${pkgname}.1" 
"${pkgdir}/usr/share/man/man7/${pkgname}.7"

Reply via email to