community/pybind11 to 2.4.3-1

This commit is contained in:
Kevin Mihelich 2019-10-20 18:20:30 +00:00
parent 52899fb738
commit a2e4175a0e

View file

@ -6,7 +6,7 @@
# - disable lto via -DPYBIND11_LTO_CXX_FLAGS=""
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')
@ -17,12 +17,10 @@ makedepends=('cmake' 'boost' 'eigen' 'python' 'python-setuptools' 'python-pytest
'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 () {
@ -36,14 +34,11 @@ build () {
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() {
@ -54,15 +49,12 @@ package() {
# 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}"
}