diff options
author | Carlos Aznarán | 2024-01-16 21:51:02 -0500 |
---|---|---|
committer | Carlos Aznarán | 2024-01-16 21:51:02 -0500 |
commit | eb0ffd7771206e8ad63cf19310506fa7f9c83aa6 (patch) | |
tree | e858db2b41bb3ec4ea344710e4be6400b50a29f0 | |
parent | 1c1af7fd1a7f4d78733d6c3fe94a642d559db351 (diff) | |
download | aur-eb0ffd7771206e8ad63cf19310506fa7f9c83aa6.tar.gz |
Add check() function
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 24 insertions, 12 deletions
@@ -1,15 +1,16 @@ pkgbase = slepc pkgdesc = Scalable library for Eigenvalue problem computations pkgver = 3.20.1 - pkgrel = 1 + pkgrel = 2 url = https://slepc.upv.es install = slepc.install arch = x86_64 - license = custom + license = custom:BSD-2-clause makedepends = gcc-fortran makedepends = cython depends = petsc>=3.20 provides = slepc4py + options = staticlibs source = https://slepc.upv.es/download/distrib/slepc-3.20.1.tar.gz md5sums = f052a9a1f7f1378952846bf6375be5bd @@ -8,20 +8,19 @@ # Contributor: Lucas H. Gabrielli <heitzmann@gmail.com> pkgname=slepc pkgver=3.20.1 -pkgrel=1 +pkgrel=2 pkgdesc="Scalable library for Eigenvalue problem computations" -arch=('x86_64') +arch=(x86_64) url="https://${pkgname}.upv.es" -license=('custom') +license=('custom:BSD-2-clause') +options=(staticlibs) depends=("petsc>=${pkgver::4}") makedepends=(gcc-fortran cython) provides=('slepc4py') -install=slepc.install +install=${pkgname}.install source=(${url}/download/distrib/${pkgname}-${pkgver/_/-}.tar.gz) md5sums=('f052a9a1f7f1378952846bf6375be5bd') -# export MAKEFLAGS="-j1" - build() { # get SLEPC_DIR source /etc/profile.d/petsc.sh # gets PETSC_DIR @@ -34,10 +33,22 @@ build() { unset PETSC_ARCH export SLEPC_DIR=${_build_dir} - python ./configure --prefix=${pkgdir}${_install_dir} \ - --with-clean \ - --with-slepc4py=1 - make + CONFOPTS="--with-clean \ + --with-slepc4py=1" + + echo ${CONFOPTS} + + python ./configure --prefix=${pkgdir}${_install_dir} ${CONFOPTS} + make ${MAKEFLAGS} all + make DESTDIR=${srcdir}/tmp install +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + if [ -z "$(ldconfig -p | grep libcuda.so.1)" ]; then + export OMPI_MCA_opal_warn_on_missing_libcuda=0 + fi + PYTHONPATH=${srcdir}/tmp/${_install_dir}/lib:${PYTHONPATH} make check } package() { |