From b4c4e026123bfe41c1cb4120794f7535c21efdb6 Mon Sep 17 00:00:00 2001 From: Holger Jaekel Date: Mon, 11 May 2020 17:36:15 +0200 Subject: [PATCH] community/hdf5: move from testing new maintainer --- {testing => community}/hdf5/APKBUILD | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) rename {testing => community}/hdf5/APKBUILD (92%) diff --git a/testing/hdf5/APKBUILD b/community/hdf5/APKBUILD similarity index 92% rename from testing/hdf5/APKBUILD rename to community/hdf5/APKBUILD index a241114ed6d..b5865f2fbf1 100644 --- a/testing/hdf5/APKBUILD +++ b/community/hdf5/APKBUILD @@ -1,5 +1,5 @@ # Contributor: Isaac Dunham -# Maintainer: +# Maintainer: Holger Jaekel # # HDF5 depends on zlib and provides a C interface by default. # Optionally, it can be built with szip (which has limitations on @@ -23,18 +23,13 @@ subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="http://www.hdfgroup.org/ftp/HDF5/current18/src/hdf5-$pkgver.tar.bz2" source="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver%.*}/hdf5-$pkgver/src/hdf5-$pkgver.tar.bz2" -prepare() { - mkdir -p "$builddir"/build - default_prepare -} - build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi - cd build - cmake \ + # Crazy workaround: run CMake to generate pkg-config file + cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ @@ -46,8 +41,9 @@ build() { -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \ -DHDF5_ENABLE_SZIP_SUPPORT=OFF \ -DHDF5_ENABLE_SZIP_ENCODING=OFF \ - ${CMAKE_CROSSOPTS} .. - cd .. + ${CMAKE_CROSSOPTS} . + + # But don’t build with it, it’s quite broken ./configure \ --prefix=/usr \ --docdir=/usr/share/doc/hdf5/ \