mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/pybind11 to 2.4.3-1
This commit is contained in:
parent
52899fb738
commit
a2e4175a0e
1 changed files with 7 additions and 15 deletions
|
@ -6,7 +6,7 @@
|
||||||
# - disable lto via -DPYBIND11_LTO_CXX_FLAGS=""
|
# - disable lto via -DPYBIND11_LTO_CXX_FLAGS=""
|
||||||
|
|
||||||
pkgname=pybind11
|
pkgname=pybind11
|
||||||
pkgver=2.4.2
|
pkgver=2.4.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='A lightweight header-only library that exposes C++ types in Python and vice versa'
|
pkgdesc='A lightweight header-only library that exposes C++ types in Python and vice versa'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -17,12 +17,10 @@ makedepends=('cmake' 'boost' 'eigen' 'python' 'python-setuptools' 'python-pytest
|
||||||
'python-sphinx' 'python-sphinx_rtd_theme' 'python-breathe')
|
'python-sphinx' 'python-sphinx_rtd_theme' 'python-breathe')
|
||||||
checkdepends=('python-py' 'python-pluggy' 'python-hypothesis' 'python-numpy' 'python-scipy')
|
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")
|
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/pybind/pybind11/archive/v${pkgver}.tar.gz")
|
||||||
sha256sums=('e212e3043cb7a15466abb8896c6924c1ce40ae2988d8c24c111afcb30735fb8f')
|
sha256sums=('1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${pkgname}-${pkgver}"
|
mkdir -p "${pkgname}-${pkgver}/build-cmake"
|
||||||
|
|
||||||
mkdir -p build-cmake
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
|
@ -36,14 +34,11 @@ build () {
|
||||||
make all mock_install
|
make all mock_install
|
||||||
|
|
||||||
# manpage
|
# manpage
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}/docs"
|
make -C "${srcdir}/${pkgname}-${pkgver}/docs" man
|
||||||
make man
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "${pkgname}-${pkgver}"
|
make -C "${pkgname}-${pkgver}/build-cmake" check
|
||||||
|
|
||||||
make -C build-cmake check
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -54,15 +49,12 @@ package() {
|
||||||
|
|
||||||
# cmake files
|
# cmake files
|
||||||
mkdir -p "${pkgdir}/usr/share/cmake/${pkgname}"
|
mkdir -p "${pkgdir}/usr/share/cmake/${pkgname}"
|
||||||
cd build-cmake/mock_install/share/cmake/pybind11
|
install -m644 build-cmake/mock_install/share/cmake/pybind11/*.cmake -t "${pkgdir}/usr/share/cmake/${pkgname}"
|
||||||
install -m644 *.cmake "${pkgdir}/usr/share/cmake/${pkgname}"
|
|
||||||
|
|
||||||
# man page
|
# man page
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}/docs/.build/man"
|
install -D -m644 "docs/.build/man/${pkgname}.1" "${pkgdir}/usr/share/man/man7/${pkgname}.7"
|
||||||
install -D -m644 "${pkgname}.1" "${pkgdir}/usr/share/man/man7/${pkgname}.7"
|
|
||||||
sed -i '/^\.TH/s/"1"/"7"/' "${pkgdir}/usr/share/man/man7/${pkgname}.7"
|
sed -i '/^\.TH/s/"1"/"7"/' "${pkgdir}/usr/share/man/man7/${pkgname}.7"
|
||||||
|
|
||||||
# license
|
# license
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue