From 914a58aff774050553708bf10eda095592031745 Mon Sep 17 00:00:00 2001 From: bartus Date: Fri, 4 Dec 2020 15:15:49 +0100 Subject: [PATCH] Use PYBIND11_GLOBAL_SDIST instread of symlinks. --- trunk/PKGBUILD | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index b2714add3..76c5cc2b0 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -1,6 +1,7 @@ # Maintainer : Daniel Bermond # Maintainer : Santiago Torres-Arias # Contributor: Matthew Ellison +# Contributor: bartus pkgname=pybind11 pkgver=2.6.0 @@ -18,7 +19,7 @@ sha256sums=('90b705137b69ee3b5fc655eaca66d0dc9862ea1759226f7ccd3098425ae69571') build () { cd "${pkgname}-${pkgver}" python setup.py build - + # tests cmake \ -B "${srcdir}/build-cmake" \ @@ -27,7 +28,7 @@ build () { -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ -Wno-dev make -C "${srcdir}/build-cmake" all mock_install - + # manpage (needs python-sphinxcontrib-svg2pdfconverter - currently on AUR) # make -C "${srcdir}/${pkgname}-${pkgver}/docs" man } @@ -38,19 +39,12 @@ check() { package() { cd "${pkgname}-${pkgver}" - python setup.py install --root="$pkgdir" --skip-build --optimize='1' - - # symlinks - local _pyver - _pyver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')" - mkdir -p "${pkgdir}/usr"/{include,share/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" - + PYBIND11_GLOBAL_SDIST=true python setup.py install --root="$pkgdir" --skip-build --optimize='1' + # man page # 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 install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } -- 2.29.2