diff options
author | Georgios Eleftheriou | 2018-07-28 15:49:37 +0200 |
---|---|---|
committer | Georgios Eleftheriou | 2018-07-28 15:49:37 +0200 |
commit | 6be1e75978a37f07cb1f5cc0406b2025d2618f6f (patch) | |
tree | bfcbbf445e76e0895f818a86653cde10b22c787d | |
parent | b3765d1a1423f09790ed9538b1acc94f35f30ceb (diff) | |
download | aur-6be1e75978a37f07cb1f5cc0406b2025d2618f6f.tar.gz |
PKGBUILD cleanup and tests
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = hdf5_18-mpich pkgdesc = The hdf5 legacy 1.8 series compiled with mpich support pkgver = 1.8.21 - pkgrel = 1 + pkgrel = 2 url = https://support.hdfgroup.org/HDF5/ arch = x86_64 license = custom @@ -5,7 +5,7 @@ _mpi=mpich pkgname=${_legacypkg}-${_mpi} _pkgname=${_legacypkg:0:4} pkgver=1.8.21 -pkgrel=1 +pkgrel=2 pkgdesc="The hdf5 legacy 1.8 series compiled with ${_mpi} support" arch=('x86_64') url="https://support.hdfgroup.org/HDF5/" @@ -28,6 +28,7 @@ prepare() { build() { cd "${_pkgname}-${pkgver}" + ./configure \ CXX="/opt/mpich/bin/mpicxx" \ CC="/opt/mpich/bin/mpicc" \ @@ -51,7 +52,16 @@ build() { make } +check() { + cd "${_pkgname}-${pkgver}" + + # This is a parallel build, there will always be some MPI bugs, + # so skip failures and don't kill the entire packaging process + make check || warning "Some tests failed" +} + package() { cd "${_pkgname}-${pkgver}" + make -j1 DESTDIR="${pkgdir}" install } |