[arch-commits] Commit in hdf5/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Fri Apr 10 21:42:52 UTC 2020


    Date: Friday, April 10, 2020 @ 21:42:51
  Author: archange
Revision: 613185

upgpkg: hdf5 1.12.0-1

Use new upstream configure switch for examples dir.

Modified:
  hdf5/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-10 21:31:13 UTC (rev 613184)
+++ PKGBUILD	2020-04-10 21:42:51 UTC (rev 613185)
@@ -1,4 +1,3 @@
-# $Id$
 # Maintainer: Ronald van Haren <ronald.archlinux.org>
 # Maintainer: Bruno Pagani <archange at archlinux.org>
 # Contributor: Stefan Husmann <stefan-husmann at t-online.de>
@@ -6,19 +5,19 @@
 # Contributor: Tom K <tomk at runbox.com>
 
 pkgname=hdf5
-pkgver=1.10.5
+pkgver=1.12.0
 pkgrel=1
 pkgdesc="General purpose library and file format for storing scientific data"
-arch=('x86_64')
+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')
-options=('staticlibs')
+license=(custom)
+depends=(zlib libaec bash)
+makedepends=(cmake time gcc-fortran)
+replaces=(hdf5-cpp-fortran)
+provides=(hdf5-cpp-fortran)
+options=(staticlibs)
 source=("https://support.hdfgroup.org/ftp/HDF5/releases/${pkgname}-${pkgver:0:4}/${pkgname}-${pkgver/_/-}/src/${pkgname}-${pkgver/_/-}.tar.bz2")
-sha256sums=('68d6ea8843d2a106ec6a7828564c1689c7a85714a35d8efafa2fee20ca366f44')
+sha256sums=('97906268640a6e9ce0cde703d5a71c9ac3092eded729591279bf2e3ca9765f61')
 
 build() {
     # Crazy workaround: run CMake to generate pkg-config file
@@ -38,6 +37,7 @@
     ./configure \
         --prefix=/usr \
         --docdir=/usr/share/doc/hdf5/ \
+        --with-examplesdir='${DESTDIR}/${prefix}/share/doc/hdf5/examples' \
         --enable-static \
         --disable-sharedlib-rpath \
         --enable-build-mode=production \
@@ -64,15 +64,8 @@
 
 package() {
     cd ${pkgname}-${pkgver/_/-}
-
     make DESTDIR="${pkgdir}" install
-
-    # Move examples to a proper place
-    install -dm755 "${pkgdir}"/usr/share/doc/${pkgname}
-    mv "${pkgdir}"/usr/share/{hdf5_examples,doc/${pkgname}/examples}
-
     install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
-
     # Install pkg-config files from CMake tree
     install -Dm644 ../build/CMakeFiles/hdf5{,_hl}{,_cpp}-${pkgver}.pc -t "${pkgdir}"/usr/lib/pkgconfig/
 }


More information about the arch-commits mailing list