summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgetzze2015-09-29 16:23:03 +0100
committergetzze2015-09-29 16:23:03 +0100
commite6f13de8c5fb7b6922c13802aec6f1e01777ac0f (patch)
tree4133f79a3275e99e86f1c2f57e94e2f0ccea2709
downloadaur-e6f13de8c5fb7b6922c13802aec6f1e01777ac0f.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD57
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d63f6f74338
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = hypre
+ pkgdesc = A library for solving large, sparse linear systems on massively parallel computers
+ pkgver = 2.10.0b
+ pkgrel = 1
+ url = http://acts.nersc.gov/hypre
+ arch = i686
+ arch = x86_64
+ license = lgpl
+ depends = gcc-libs
+ depends = gcc-fortran
+ depends = openmpi
+ depends = blas
+ depends = lapack
+ depends = superlu
+ source = https://computation.llnl.gov/project/linear_solvers/download/hypre-2.10.0b-babel.tar.gz
+ md5sums = b0d876cb6958e024c24c05af1c257e24
+
+pkgname = hypre
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e88a2a6196c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Bertrand Lacoste <bertrandlacoste at gmail dot com>
+# Contributor: Tim Langlois <langlois at cs dot cornell dot edu>
+pkgname=hypre
+pkgver=2.10.0b
+_suffix='babel'
+## Use the source from petsc website, suffixed by _p1. Also change the source and checksums.
+#_suffix='p1'
+pkgrel=1
+pkgdesc="A library for solving large, sparse linear systems on massively parallel computers"
+arch=('i686' 'x86_64')
+url="http://acts.nersc.gov/hypre"
+license=('lgpl')
+depends=('gcc-libs' 'gcc-fortran' 'openmpi' 'blas' 'lapack' 'superlu')
+source=(https://computation.llnl.gov/project/linear_solvers/download/${pkgname}-${pkgver}-${_suffix}.tar.gz)
+md5sums=('b0d876cb6958e024c24c05af1c257e24')
+# mirror
+#source=(http://ftp.mcs.anl.gov/pub/petsc/externalpackages/hypre-2.10.0b-p1.tar.gz)
+#md5sums=('7aa49089176c8bef7f51a0234264f952')
+
+build() {
+ _build_dir="${srcdir}/${pkgname}-${pkgver}-${_suffix}"
+ cd "${_build_dir}/src"
+
+
+ CFLAGS='-O3 -fopenmp -DMPIPP_H'
+ CXXFLAGS='-O3 -fopenmp -DMPIPP_H'
+ MPI_FLAGS=(--with-MPI --with-openmp --with-MPI-lib-dirs=/usr/lib/openmpi)
+ MPI_FLAGS+=(--with-MPI-libs="gomp mpi mpi_usempif08 mpi_usempi_ignore_tkr mpi_mpifh gfortran m quadmath pthread")
+
+ # disable internal superlu and fei for now, not sure yet how to get it to use external superlu
+ ./configure --prefix=/usr --enable-shared \
+ --with-superlu --with-extra-incpath=/usr/include/superlu \
+ --without-fei --without-babel \
+ --with-blas=yes --with-lapack=yes \
+ "${MPI_FLAGS[@]}" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+ make
+}
+
+check() {
+ _build_dir="${srcdir}/${pkgname}-${pkgver}-${_suffix}"
+ cd "${_build_dir}/src"
+
+ make test
+}
+
+package() {
+ _build_dir="${srcdir}/${pkgname}-${pkgver}-${_suffix}"
+ cd "${_build_dir}/src"
+
+ mkdir -p ${pkgdir}/usr/lib ${pkgdir}/usr/include
+
+ install -m644 ${_build_dir}/src/hypre/include/*.h ${pkgdir}/usr/include
+ install -m644 ${_build_dir}/src/hypre/lib/libHYPRE-${pkgver}.so ${pkgdir}/usr/lib
+ ln -s libHYPRE-${pkgver}.so ${pkgdir}/usr/lib/libHYPRE.so
+}
+