Subject: [alpine-aports] [PATCH] testing/hdf5v18

From: Jose Maria Garcia <[email-masked]>
Date: Fri, 17 Nov 2017 21:45:10 +0100

https://support.hdfgroup.org/HDF5/
HDF5 version required by MED package
---
 testing/hdf5v18/APKBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 testing/hdf5v18/APKBUILD

diff --git a/testing/hdf5v18/APKBUILD b/testing/hdf5v18/APKBUILD
new file mode 100644
index 0000000000..580b370f01
--- /dev/null
+++ b/testing/hdf5v18/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Jose Maria Garcia <[email-masked]>
+# Maintainer: Jose Maria Garcia <[email-masked]>
+pkgname=hdf5v18
+pkgver=1.8.14
+pkgrel=0
+pkgdesc="HDF5 version required by MED package"
+url="https://support.hdfgroup.org/HDF5/"
+arch="all"
+license="BSD-style"
+depends="zlib"
+makedepends="gfortran zlib-dev" #"openmpi-dev"
+install=""
+subpackages="$pkgname-examples $pkgname-dev"
+source="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-${pkgver}/src/hdf5-${pkgver}.tar.gz"
+builddir="$srcdir/hdf5-${pkgver}"
+
+build() {
+   	cd "${builddir}/"
+
+   	./configure \
+   		--prefix=/usr \
+   		--sysconfdir=/etc \
+   		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+   		--localstatedir=/var \
+		--with-pic \
+		--enable-fortran  \
+		--disable-threadsafe \
+		--enable-cxx \
+		--enable-direct-vfd \
+		--enable-production 
+   		#--build=$CBUILD \
+   		#--host=$CHOST \
+                #--enable-hl  
+		#--libdir=/usr/lib/hdf5v18 \
+		#--includedir=/usr/include/hdf5v18/ \
+		#--enable-parallel
+
+
+   	make
+}
+
+package() {
+	cd "$builddir"
+        make DESTDIR="$pkgdir" install
+        #rm -f "$pkgdir"/usr/lib/charset.alias
+}
+
+examples() {
+	pkgdesc="$pkgname-$pkgver examples"
+	cd "$builddir"
+        mkdir -p "$subpkgdir"/usr/share/hdf5_examples
+        mv "$pkgdir"/usr/share/hdf5_examples/* "$subpkgdir"/usr/share/hdf5_examples/
+}
+
+sha512sums="4073fba510ccadaba41db0939f909613c9cb52ba8fb6c1062fc9118edc601394c75e102310be1af4077d07c9b327e6bbb1a6359939a7268dc140382d0c1e0199  hdf5-1.8.14.tar.gz"
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---