New package: python3-pybind11-2.5.0
This commit is contained in:
parent
7d21c3953b
commit
e120430b4a
1 changed files with 31 additions and 0 deletions
31
srcpkgs/python3-pybind11/template
Normal file
31
srcpkgs/python3-pybind11/template
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Template file for 'python3-pybind11'
|
||||||
|
pkgname=python3-pybind11
|
||||||
|
version=2.5.0
|
||||||
|
revision=1
|
||||||
|
archs=noarch
|
||||||
|
wrksrc="pybind11-${version}"
|
||||||
|
build_style=python3-module
|
||||||
|
make_install_args="--install-headers=/usr/include/pybind11"
|
||||||
|
hostmakedepends="python3-setuptools
|
||||||
|
python3-pytest python3-sphinx_rtd_theme python3-breathe"
|
||||||
|
depends="python3-devel"
|
||||||
|
short_desc="C++ header-only library to produce Python bindings"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="BSD-3-Clause"
|
||||||
|
homepage="https://github.com/pybind/pybind11"
|
||||||
|
distfiles="https://github.com/pybind/pybind11/archive/v${version}.tar.gz"
|
||||||
|
checksum=97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
# Build the man page
|
||||||
|
make $makejobs -C docs man
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
|
||||||
|
# Copy the man page, but make it section 7
|
||||||
|
_manpage=docs/.build/man/pybind11.1
|
||||||
|
vsed -i ${_manpage} -e '/^\.TH/ s/"1"/"7"/'
|
||||||
|
vman ${_manpage} pybind11.7
|
||||||
|
}
|
Loading…
Reference in a new issue