diff options
author | Carlos Aznarán Laos | 2023-05-27 20:08:21 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2023-05-27 20:08:21 -0500 |
commit | 191f3a1045071d63e296a936a03234a0ec536c6e (patch) | |
tree | 3a42e906ce56340c0c93f07a435abb43e43529fc /PKGBUILD | |
parent | 23135f855c98c2848fb5b2d7a9dfa79a5f16227e (diff) | |
download | aur-191f3a1045071d63e296a936a03234a0ec536c6e.tar.gz |
python-bindings not supported
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -30,8 +30,8 @@ prepare() { sed -i '15 a install(FILES gridfunctiontest.hh DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/functions/gridfunctions/test)' ${pkgname}-${pkgver}/dune/functions/gridfunctions/test/CMakeLists.txt sed -i '7 a BUILD_ON_INSTALL' ${pkgname}-${pkgver}/doc/manual/CMakeLists.txt sed -i '3 a BUILD_ON_INSTALL' ${pkgname}-${pkgver}/doc/manual/CMakeLists.txt - sed -i '/dune_python_add_test(NAME pypoisson/,+3 s/^/#/' ${pkgname}-${pkgver}/dune/python/test/CMakeLists.txt - python -m venv --system-site-packages build-cmake/dune-env + # sed -i '/dune_python_add_test(NAME pypoisson/,+3 s/^/#/' ${pkgname}-${pkgver}/dune/python/test/CMakeLists.txt + # python -m venv --system-site-packages build-cmake/dune-env } build() { @@ -52,20 +52,21 @@ build() { -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=FALSE \ -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=FALSE \ -DENABLE_HEADERCHECK=ON \ - -DDUNE_ENABLE_PYTHONBINDINGS=ON \ - -DDUNE_PYTHON_INSTALL_LOCATION='none' \ - -DDUNE_PYTHON_WHEELHOUSE="dist" + -DDUNE_ENABLE_PYTHONBINDINGS=OFF + + # -DDUNE_PYTHON_INSTALL_LOCATION='none' \ + # -DDUNE_PYTHON_WHEELHOUSE="dist" cmake --build build-cmake --target all - cd build-cmake/python - python setup.py build + # cd build-cmake/python + # python setup.py build } package() { XDG_CACHE_HOME="${PWD}" DESTDIR="${pkgdir}" cmake --build build-cmake --target install install -Dm 644 ${pkgname}-${pkgver}/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" find "${pkgdir}" -type d -empty -delete - cd build-cmake/python - PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build - rm -r "${pkgdir}"/tmp + # cd build-cmake/python + # PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + # rm -r "${pkgdir}"/tmp } |