[arch-commits] Commit in pybind11/trunk (PKGBUILD)

Daniel Bermond dbermond at archlinux.org
Sun Oct 20 17:57:06 UTC 2019


    Date: Sunday, October 20, 2019 @ 17:57:06
  Author: dbermond
Revision: 517882

upgpkg: pybind11 2.4.3-1

Updated to version 2.4.3

Modified:
  pybind11/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-20 17:56:49 UTC (rev 517881)
+++ PKGBUILD	2019-10-20 17:57:06 UTC (rev 517882)
@@ -3,7 +3,7 @@
 # Contributor: Matthew Ellison <matt+aur at arroyonetworks.com>
 
 pkgname=pybind11
-pkgver=2.4.2
+pkgver=2.4.3
 pkgrel=1
 pkgdesc='A lightweight header-only library that exposes C++ types in Python and vice versa'
 arch=('any')
@@ -14,12 +14,10 @@
              'python-sphinx' 'python-sphinx_rtd_theme' 'python-breathe')
 checkdepends=('python-py' 'python-pluggy' 'python-hypothesis' 'python-numpy' 'python-scipy')
 source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/pybind/pybind11/archive/v${pkgver}.tar.gz")
-sha256sums=('e212e3043cb7a15466abb8896c6924c1ce40ae2988d8c24c111afcb30735fb8f')
+sha256sums=('1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d')
 
 prepare() {
-    cd "${pkgname}-${pkgver}"
-    
-    mkdir -p build-cmake
+    mkdir -p "${pkgname}-${pkgver}/build-cmake"
 }
 
 build () {
@@ -33,14 +31,11 @@
     make all mock_install
     
     # manpage
-    cd "${srcdir}/${pkgname}-${pkgver}/docs"
-    make man
+    make -C "${srcdir}/${pkgname}-${pkgver}/docs" man
 }
 
 check() {
-    cd "${pkgname}-${pkgver}"
-    
-   make -C build-cmake check
+    make -C "${pkgname}-${pkgver}/build-cmake" check
 }
 
 package() {
@@ -51,15 +46,12 @@
     
     # cmake files
     mkdir -p "${pkgdir}/usr/share/cmake/${pkgname}"
-    cd build-cmake/mock_install/share/cmake/pybind11
-    install -m644 *.cmake "${pkgdir}/usr/share/cmake/${pkgname}"
+    install -m644 build-cmake/mock_install/share/cmake/pybind11/*.cmake -t "${pkgdir}/usr/share/cmake/${pkgname}"
     
     # man page
-    cd "${srcdir}/${pkgname}-${pkgver}/docs/.build/man"
-    install -D -m644 "${pkgname}.1" "${pkgdir}/usr/share/man/man7/${pkgname}.7"
+    install -D -m644 "docs/.build/man/${pkgname}.1" "${pkgdir}/usr/share/man/man7/${pkgname}.7"
     sed -i '/^\.TH/s/"1"/"7"/' "${pkgdir}/usr/share/man/man7/${pkgname}.7"
     
     # license
-    cd "${srcdir}/${pkgname}-${pkgver}"
     install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list