[arch-commits] Commit in hdf5/repos (2 files)

Bruno Pagani archange at archlinux.org
Thu Apr 5 14:53:15 UTC 2018


    Date: Thursday, April 5, 2018 @ 14:53:14
  Author: archange
Revision: 314435

archrelease: copy trunk to community-testing-x86_64

Added:
  hdf5/repos/community-testing-x86_64/
  hdf5/repos/community-testing-x86_64/PKGBUILD
    (from rev 314434, hdf5/trunk/PKGBUILD)

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

Copied: hdf5/repos/community-testing-x86_64/PKGBUILD (from rev 314434, hdf5/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-04-05 14:53:14 UTC (rev 314435)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Tom K <tomk at runbox.com>
+
+pkgname=hdf5
+pkgver=1.10.2
+pkgrel=1
+pkgdesc="General purpose library and file format for storing scientific data"
+arch=('x86_64')
+url="https://www.hdfgroup.org/hdf5/"
+license=('custom')
+depends=('zlib' 'libaec' 'bash')
+makedepends=('cmake' 'time' 'gcc-fortran')
+replaces=('hdf5-cpp-fortran')
+provides=('hdf5-cpp-fortran')
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${pkgname}-${pkgver:0:4}/${pkgname}-${pkgver/_/-}/src/${pkgname}-${pkgver/_/-}.tar.bz2")
+# https://support.hdfgroup.org/ftp/HDF5/releases/${pkgname}-${pkgver:0:4}/${pkgname}-${pkgver/_/-}/src/${pkgname}-${pkgver/_/-}.md5
+md5sums=('41fb9347801b546fba323523a1c1af51')
+sha256sums=('1cad5b7bfdf128dfc53cd16fba48f6e7ae4e93c75c371d9ec8dfc4df0c1fcb71')
+
+prepare() {
+    mkdir -p build
+}
+
+build() {
+    cd build
+    cmake ../${pkgname}-${pkgver/_/-} \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DBUILD_SHARED_LIBS=ON \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DHDF5_BUILD_HL_LIB=ON \
+        -DHDF5_BUILD_CPP_LIB=ON \
+        -DHDF5_BUILD_FORTRAN=ON \
+        -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
+        -DHDF5_ENABLE_SZIP_SUPPORT=ON \
+        -DHDF5_ENABLE_SZIP_ENCODING=ON
+    cmake --build . --config Release
+}
+
+check() {
+    cd build
+    ctest . -C Release
+}
+
+package() {
+    cd build
+
+    make DESTDIR="${pkgdir}" install
+
+    install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+    mv "${pkgdir}"/usr/share/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
+    rm "${pkgdir}"/usr/share/{RELEASE,USING_HDF5_CMake}.txt
+}



More information about the arch-commits mailing list