[arch-commits] Commit in (4 files)

Alad Wenter alad at archlinux.org
Tue Jan 8 12:02:21 UTC 2019


    Date: Tuesday, January 8, 2019 @ 12:02:19
  Author: alad
Revision: 421018

import trilinos

Added:
  trilinos/
  trilinos/repos/
  trilinos/trunk/
  trilinos/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Added: trilinos/trunk/PKGBUILD
===================================================================
--- trilinos/trunk/PKGBUILD	                        (rev 0)
+++ trilinos/trunk/PKGBUILD	2019-01-08 12:02:19 UTC (rev 421018)
@@ -0,0 +1,45 @@
+# Contributor: Jingbei Li <i at jingbei.li>
+# Contributor: Simon Pintarelli <simon.pintarelli at gmail.com>
+# Contributor: Feng Wang <wanng.fenng at gmail.com>
+pkgname=trilinos
+pkgver=12.12.1
+pkgrel=2
+pkgdesc="algorithms for the solution of large-scale scientific problems"
+arch=('x86_64')
+url="http://trilinos.org"
+license=('LGPL3')
+depends=('lapack' 'openmpi' 'python2' 'boost' 'netcdf' 'libmatio' 'libx11')
+source=("https://github.com/trilinos/Trilinos/archive/trilinos-release-${pkgver//./-}.tar.gz")
+md5sums=('ecd4606fa332212433c98bf950a69cc7')
+makedepends=('python2-numpy' 'swig' 'gcc-fortran' 'perl' 'blas' 'cmake' 'gtest' 'doxygen')
+
+prepare() {
+	mv "$srcdir/Trilinos-trilinos-release-${pkgver//./-}" "$srcdir/Trilinos"
+
+    # https://github.com/trilinos/Trilinos/issues/862#issuecomment-365852261
+	find "$srcdir/Trilinos" -name "*.py" -exec \
+		sed -i '1s#\(/usr/bin/env \|/usr/bin/\)python[2-3]*#\1python2#' {} \;
+}
+
+build() {
+	cd "$srcdir/Trilinos"
+	mkdir -p build
+	cd build
+
+	cmake .. -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
+             -DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
+             -DTrilinos_ENABLE_Gtest:BOOL=OFF \
+             -DTrilinos_ENABLE_TESTS=OFF \
+             -DTPL_ENABLE_gtest:BOOL=ON \
+             -DTPL_ENABLE_MPI:BOOL=ON \
+             -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
+             -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+             -DCMAKE_BUILD_TYPE=Release \
+             -DBUILD_SHARED_LIBS:BOOL=ON
+	make
+}
+
+package() {
+	cd "$srcdir/Trilinos/build"
+	make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list