Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Updated PKGBUILD trilinos

By: a guest on Mar 15th, 2012  |  syntax: None  |  size: 1.68 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Myles English <myles at rockhead.biz>
  2. # Contributor: Feng Wang <wanng.fenng@gmail.com>
  3. pkgname=trilinos
  4. pkgver=10.10.1
  5. pkgrel=1
  6. pkgdesc="The Trilinos Project is an effort to develop algorithms and enabling technologies within an object-oriented software framework for the solution of large-scale, complex multi-physics engineering and scientific problems."
  7. arch=(any)
  8. url="http://trilinos.sandia.gov/index.html"
  9. license=('LGPL3')
  10. depends=()
  11. source=(http://trilinos.sandia.gov/download/files/${pkgname}-${pkgver}-Source.tar.gz)
  12. makedepends=('python2' 'python2-numpy' 'swig' 'gcc' 'openmpi' 'perl' 'blas' 'lapack' 'cmake')
  13. md5sums=('66a61dfbacbc1130536dd945e8f4dee2')
  14.  
  15. build() {
  16.   cd "$srcdir/$pkgname-$pkgver-Source"
  17.  
  18.   find ${srcdir} -name "*" -type f -exec \
  19.       sed -i 's#\(/usr/bin/env \|/usr/bin/\)python[2-3]*#\1python2#' {} \;
  20.  
  21.   [[ -e build ]] || mkdir build
  22.   cd build
  23.  
  24. cmake \
  25.     .. \
  26.     -DCMAKE_BUILD_TYPE:STRING=DEBUG \
  27.     -DTrilinos_ENABLE_OpenMP:BOOL=ON \
  28.     -DTPL_ENABLE_MPI:BOOL=ON \
  29.     -DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
  30.     -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
  31.     -DML_ENABLE_Aztec:BOOL=ON \
  32.     -DTrilinos_ENABLE_PyTrilinos:BOOL=ON \
  33.     -DTrilinos_ENABLE_TESTS:BOOL=OFF \
  34.     -DBUILD_SHARED_LIBS:BOOL=ON \
  35.     -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
  36.     -DML_ENABLE_MLapi:BOOL=ON \
  37.     -DCMAKE_INSTALL_PREFIX:PATH=/usr \
  38.     $EXTRA_ARGS
  39.  
  40.     make
  41. }
  42.  
  43.  
  44. package() {
  45.     cd $srcdir/$pkgname-$pkgver-Source/build
  46.     make install DESTDIR=$pkgdir
  47.  
  48.     mkdir -p ${pkgdir}/etc/profile.d
  49.     echo "export TRILINOS_DIR=/usr" > ${pkgdir}/etc/profile.d/trilinos.sh
  50.     chmod +x ${pkgdir}/etc/profile.d/trilinos.sh
  51. }