core/openmpi/PKGBUILD
2018-01-22 20:26:31 +01:00

60 lines
1.7 KiB
Bash

pkgname=openmpi
pkgver=3.0.0
pkgrel=2
pkgdesc='High performance message passing library (MPI)'
arch=('x86_64')
url='http://www.open-mpi.org'
license=(custom)
depends=('libtool' 'hwloc' 'openssh')
makedepends=('inetutils' 'valgrind' 'gcc-fortran')
optdepends=('gcc-fortran: fortran support')
options=(staticlibs)
source=(https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('fa63990db1aec88b36335a1d79abf47ac6348e23')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \
--enable-mpi-fortran=all \
--libdir=/usr/lib/${pkgname} \
--with-threads=posix \
--enable-mpi-thread-multiple \
--enable-smp-locks \
--enable-builtin-atomics \
--enable-mpi-cxx \
--with-valgrind \
--enable-memchecker \
--enable-pretty-print-stacktrace \
--without-slurm \
--with-hwloc=/usr \
--with-libltdl=/usr \
FC=/usr/bin/gfortran \
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# FS#28583
install -dm 755 "${pkgdir}/usr/lib/pkgconfig"
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
ln -sf "/usr/lib/openmpi/pkgconfig/${i}" "${pkgdir}/usr/lib/pkgconfig/"
done
install -dm 755 "${pkgdir}/etc/ld.so.conf.d"
echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}