updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / hdf5-wfortran / PKGBUILD
blob3c453cddade9da13144b338364184c7fd6b2999c
1 # Maintainer Yngve Inntjore Levinsen <yngveDOTlevinsenATgmailDOTcom>
2 # Contributor: Jed Brown <jed@59A2.org>
3 pkgname=hdf5-wfortran
4 _pkgname=hdf5
5 _prefix=/usr
6 pkgver=1.8.7
7 pkgrel=2
8 arch=("i686" "x86_64")
9 pkgdesc="General purpose library and file format for storing scientific data"
10 url="http://hdfgroup.org/HDF5"
11 license=("custom")
12 provides=(hdf5=${pkgver})
13 conflicts=(hdf5)
14 depends=('zlib' 'bash' 'gcc-libs')
15 makedepends=('time')
16 source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${pkgver}.tar.gz)
17 md5sums=('37711d4bcb72997e93d495f97c76c33a')
18 options=("!libtool")
20 build() {
21     [ -e build ] && rm -rf build
22     mkdir -p build && cd build
23     unset CFLAGS
24     unset CXXFLAGS
25     # There is a large amount of warnings
26     # that I don't want every user to see...
27     export CFLAGS="-Wno-unused-but-set-variable -Wno-format-nonliteral -Wno-unsuffixed-float-constants -Wno-sign-conversion -Wno-conversion -Wno-strict-overflow -Wno-unsafe-loop-optimizations -Wno-cast-qual -Wno-c++-compat -Wno-switch-enum -Wno-unused-macros -Wno-float-equal -Wno-double-promotion"
28     ../${_pkgname}-${pkgver}/configure  \
29         --prefix=${_prefix} \
30         --enable-hl \
31         --enable-largefile \
32         --enable-production \
33         --enable-fortran \
34         --enable-shared \
35         --enable-static \
36         --with-pic \
37         --docdir=${_prefix}/share/${_pkgname} \
38         --with-pthread=/usr/lib
39     make
41 package () {
42     cd $srcdir/build
43     unset CFLAGS
44     unset CXXFLAGS
45     make -j1 prefix=${pkgdir}${_prefix} install
47     install -D -m644 ${srcdir}/${_pkgname}-${pkgver}/COPYING \
48         ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE