termux-packages/packages/libhdf5/build.sh

24 lines
1.2 KiB
Bash
Raw Normal View History

2018-04-06 21:47:23 +02:00
TERMUX_PKG_HOMEPAGE=https://portal.hdfgroup.org/display/support
TERMUX_PKG_DESCRIPTION="Hierarchical Data Format 5 (HDF5)"
2019-01-26 00:22:53 +01:00
TERMUX_PKG_LICENSE="BSD 3-Clause"
2020-01-02 11:43:46 +01:00
TERMUX_PKG_VERSION=1.10.6
TERMUX_PKG_SRCURL=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${TERMUX_PKG_VERSION:0:4}/hdf5-$TERMUX_PKG_VERSION/src/hdf5-$TERMUX_PKG_VERSION.tar.bz2
2020-01-02 11:43:46 +01:00
TERMUX_PKG_SHA256=09d6301901685201bb272a73e21c98f2bf7e044765107200b01089104a47c3bd
2019-06-20 13:22:57 +02:00
TERMUX_PKG_DEPENDS="libc++, libzopfli"
TERMUX_PKG_BREAKS="libhdf5-dev"
TERMUX_PKG_REPLACES="libhdf5-dev"
2018-04-06 21:47:23 +02:00
TERMUX_PKG_FORCE_CMAKE=true
2019-01-26 02:25:05 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-C$TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/TryRunResults_out.cmake"
2018-04-06 21:47:23 +02:00
termux_step_pre_configure () {
cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/
2018-04-06 21:47:23 +02:00
mkdir -p $TERMUX_PKG_BUILDDIR/shared/
cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/shared/
2019-04-02 21:27:14 +02:00
touch $TERMUX_PKG_BUILDDIR/gen_SRCS.stamp1 $TERMUX_PKG_BUILDDIR/gen_SRCS.stamp2
touch $TERMUX_PKG_BUILDDIR/shared/shared_gen_SRCS.stamp1 $TERMUX_PKG_BUILDDIR/shared/shared_gen_SRCS.stamp2
2018-04-06 21:47:23 +02:00
}
termux_step_post_configure () {
cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/shared/
2018-04-06 21:47:23 +02:00
}