void-packages/srcpkgs/python3-pybind11/template
2021-08-31 10:30:01 -04:00

34 lines
855 B
Bash

# Template file for 'python3-pybind11'
pkgname=python3-pybind11
version=2.7.1
revision=1
wrksrc="pybind11-${version}"
build_style=python3-module
hostmakedepends="cmake python3-setuptools python3-pytest"
depends="python3-devel"
checkdepends="python3-numpy $depends"
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=616d1c42e4cf14fa27b2a4ff759d7d7b33006fdc5ad8fd603bb2c22622f27020
pre_check() {
mkdir -p build.tests
cd build.tests
CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" \
CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" cmake ..
make $makejobs
}
do_check() {
make $makejobs -C build.tests check
}
post_install() {
vlicense LICENSE
}