mirror of
https://github.com/termux/termux-packages.git
synced 2025-10-01 05:51:12 +00:00
32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.unidata.ucar.edu/software/netcdf/
|
|
TERMUX_PKG_DESCRIPTION="NetCDF is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
|
TERMUX_PKG_VERSION="4.9.3"
|
|
TERMUX_PKG_SRCURL=https://github.com/Unidata/netcdf-c/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=990f46d49525d6ab5dc4249f8684c6deeaf54de6fec63a187e9fb382cc0ffdff
|
|
TERMUX_PKG_DEPENDS="libandroid-execinfo, libcurl, zlib"
|
|
TERMUX_PKG_BREAKS="netcdf-c-dev"
|
|
TERMUX_PKG_REPLACES="netcdf-c-dev"
|
|
TERMUX_PKG_GROUPS="science"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-hdf5"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BREAKS="gdal (<= 3.10.2), monetdb (<= 11.51.7)"
|
|
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION="23-1"
|
|
|
|
local e=$(sed -En 's/.*\s+netCDF_SO_VERSION="?([0-9]+):([0-9]+):([0-9]+).*/\1-\3/p' \
|
|
configure.ac)
|
|
if [ ! "${e}" ] || [ "${_SOVERSION}" != "${e}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|
|
|
|
termux_step_pre_configure() {
|
|
LDFLAGS+=" -landroid-execinfo"
|
|
}
|