aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2020-05-11 17:36:15 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-05-15 14:04:03 +0200
commitb4c4e026123bfe41c1cb4120794f7535c21efdb6 (patch)
tree2b9d97f442ca21d1d2114d86a76fba28912f166c
parent24368f3e72863b6504be6705e6d18eb1e025ca62 (diff)
downloadaports-b4c4e026123bfe41c1cb4120794f7535c21efdb6.tar.gz
aports-b4c4e026123bfe41c1cb4120794f7535c21efdb6.tar.bz2
aports-b4c4e026123bfe41c1cb4120794f7535c21efdb6.tar.xz
community/hdf5: move from testing
new maintainer
-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/ \