summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGeorgios Eleftheriou2018-08-23 00:31:26 +0200
committerGeorgios Eleftheriou2018-08-23 00:31:26 +0200
commitc4896caa287576cdd332c55d69649b67ebbddc1d (patch)
treec8f07769fffe98a274d7643b653e26a66c838c50 /PKGBUILD
parent5610f1785ecfc2b88b2eedacfa0fde0ff09cf0dc (diff)
downloadaur-c4896caa287576cdd332c55d69649b67ebbddc1d.tar.gz
upgraded to 1.10.3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 18 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 05ee1456f96..bd6b55e8bf2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,28 +3,25 @@
_pkgname=hdf5
pkgname=lib32-${_pkgname}
-pkgver=1.10.2
+pkgver=1.10.3
pkgrel=1
pkgdesc="General purpose library and file format for storing scientific data (32-bit)"
arch=('x86_64')
-url="https://www.hdfgroup.org/hdf5/"
+url="https://portal.hdfgroup.org/display/support"
license=('custom')
-depends=('lib32-zlib')
+depends=('lib32-zlib' 'lib32-libaec')
makedepends=('time' 'gcc-fortran-multilib')
source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver}/src/${_pkgname}-${pkgver}.tar.bz2")
-md5sums=('41fb9347801b546fba323523a1c1af51')
+md5sums=('56c5039103c51a40e493b43c504ce982')
prepare() {
- cd ${_pkgname}-${pkgver}
-
- # Fix building with GCC 8.1
- sed 's/\(.*\)(void) HDF_NO_UBSAN/HDF_NO_UBSAN \1(void)/' -i src/H5detect.c
+ [ ! -d build ] && mkdir -p build
}
build() {
- cd ${_pkgname}-${pkgver}
+ cd build
- ./configure \
+ "${srcdir}/${_pkgname}-${pkgver}"/configure \
CFLAGS="-m32 ${CFLAGS}" \
CXXFLAGS="-m32 ${CXXFLAGS}" \
FCFLAGS="-m32 ${FCFLAGS}" \
@@ -41,27 +38,29 @@ build() {
--enable-cxx \
--enable-fortran \
--with-pic \
- --with-zlib
+ --with-zlib \
+ --with-szlib
+
make
}
check() {
- cd ${_pkgname}-${pkgver}
+ cd build
# Without exporting LD_LIBRARY_PATH, tests fail being unable to
# locate the newly built (not installed yet) hdf5 runtime
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/${_pkgname}-${pkgver}/src/.libs"
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/${_pkgname}-${pkgver}/c++/src/.libs"
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/${_pkgname}-${pkgver}/fortran/src/.libs"
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/${_pkgname}-${pkgver}/hl/src/.libs"
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/${_pkgname}-${pkgver}/hl/c++/src/.libs"
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/${_pkgname}-${pkgver}/hl/fortran/src/.libs"
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/build/src/.libs"
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/build/c++/src/.libs"
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/build/fortran/src/.libs"
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/build/hl/src/.libs"
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/build/hl/c++/src/.libs"
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${srcdir}/build/hl/fortran/src/.libs"
make check
}
package() {
- cd ${_pkgname}-${pkgver}
+ cd build
make -j1 DESTDIR="${pkgdir}" install