diff options
-rw-r--r-- | community/hdf5/APKBUILD (renamed from testing/hdf5/APKBUILD) | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/testing/hdf5/APKBUILD b/community/hdf5/APKBUILD index a241114ed6..b5865f2fbf 100644 --- a/testing/hdf5/APKBUILD +++ b/community/hdf5/APKBUILD @@ -1,5 +1,5 @@ # Contributor: Isaac Dunham <ibid.ag@gmail.com> -# Maintainer: +# Maintainer: Holger Jaekel <holger.jaekel@gmx.de> # # 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/ \ |