community/pybind11 to 2.6.2-2

This commit is contained in:
Kevin Mihelich 2021-04-17 19:29:41 +00:00
parent d6d22f7747
commit 7f315db53e

View file

@ -7,7 +7,7 @@
pkgname=pybind11
pkgver=2.6.2
pkgrel=1
pkgrel=2
pkgdesc='A lightweight header-only library that exposes C++ types in Python and vice versa'
arch=('any')
url='https://pybind11.readthedocs.org/'
@ -48,9 +48,9 @@ package() {
# symlinks
local _pyver
_pyver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')"
mkdir -p "${pkgdir}/usr"/{include,share/cmake}
mkdir -p "${pkgdir}/usr"/{include,lib/cmake}
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/share/cmake/pybind11"
ln -s "../../lib/python${_pyver}/site-packages/pybind11/share/cmake/pybind11" "${pkgdir}/usr/lib/cmake/pybind11"
# man page
# install -D -m644 "docs/.build/man/${pkgname}.1" "${pkgdir}/usr/share/man/man7/${pkgname}.7"