This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

hdf5-fortran-cxx 1.8.3

By: erwinkendo on May 14th, 2012  |  syntax: None  |  size: 1.27 KB  |  views: 55  |  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: Q. Guo <guotsuan@gmail.com>
  2.  
  3. pkgname=hdf5-fortran-cxx
  4. _pkgname=hdf5
  5. pkgver=1.8.9
  6. _pkgver=1.8.9
  7. pkgrel=2
  8. arch=('i686' 'x86_64')
  9. pkgdesc="General purpose library and file format for storing scientific data with GNU gfortran and GNU C++ support enabled, but without threadsafe."
  10. url="http://www.hdfgroup.org/HDF5/"
  11. license=('custom')
  12. conflicts=(hdf5)
  13. depends=('zlib' 'sh'  'gcc'  'gcc-fortran')
  14. makedepends=('time')
  15. source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${pkgver}.tar.bz2)
  16. options=('!libtool')
  17. sha1sums=('7d5e5e8caa5970c65e70a5b4ad6787efe0bf70bb')
  18.  
  19. build() {
  20.   cd $srcdir/${_pkgname}-${_pkgver}
  21.   export CFLAGS="${CFLAGS/O2/O0}"
  22.   export CXXFLAGS="${CFLAGS}"
  23.   ./configure --prefix=/usr \
  24.       FC=gfortran  \
  25.       CXX=g++ \
  26.     --enable-fortran \
  27.     --enable-fortran2003 \
  28.     --enable-cxx \
  29.     --enable-hl \
  30.     --enable-linux-lfs \
  31.     --enable-production \
  32.     --with-pic \
  33.     --docdir=/usr/share/doc/hdf5/ \
  34.     --disable-sharedlib-rpath
  35.   make
  36. }
  37.  
  38. package() {
  39.   cd $srcdir/${_pkgname}-${_pkgver}
  40.  
  41.   make -j1 DESTDIR=${pkgdir} install
  42.  
  43.   install -d -m755 $pkgdir/usr/share/licenses/${_pkgname}
  44.   install -m644 $srcdir/${_pkgname}-${_pkgver}/COPYING \
  45.           $pkgdir/usr/share/licenses/${_pkgname}/LICENSE
  46. }
clone this paste RAW Paste Data