mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-27 22:20:31 +00:00
It is true that libarrow-python should be bumped to the same version in this PR as well. But its build system has drastically changed from the previous version and trial and error is needed to adapt to it. It would be really a pain if I had to wait for libarrow-cpp to finish its build before build of libarrow-python begins every time I modify the build recipe.
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/apache/arrow
|
|
TERMUX_PKG_DESCRIPTION="C++ libraries for Apache Arrow"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
# Align the version with `libarrow-python` package.
|
|
TERMUX_PKG_VERSION=11.0.0
|
|
TERMUX_PKG_SRCURL=https://github.com/apache/arrow/archive/refs/tags/apache-arrow-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=4a8c0c3d5b39ca81f4a636a41863f1cf5e0ed199f994bf5ead0854ca037eb741
|
|
TERMUX_PKG_DEPENDS="libc++, libre2, utf8proc"
|
|
TERMUX_PKG_BUILD_DEPENDS="rapidjson"
|
|
TERMUX_PKG_BREAKS="libarrow-python (<< ${TERMUX_PKG_VERSION})"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DARROW_BUILD_STATIC=OFF
|
|
-DARROW_CSV=ON
|
|
-DARROW_DATASET=ON
|
|
-DARROW_HDFS=ON
|
|
-DARROW_JEMALLOC=OFF
|
|
-DARROW_JSON=ON
|
|
-DARROW_PARQUET=ON
|
|
-DARROW_RUNTIME_SIMD_LEVEL=NONE
|
|
-DARROW_SIMD_LEVEL=NONE
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
TERMUX_PKG_SRCDIR+="/cpp"
|
|
|
|
_NEED_DUMMY_LIBRT_A=
|
|
_LIBRT_A=$TERMUX_PREFIX/lib/librt.a
|
|
if [ ! -e $_LIBRT_A ]; then
|
|
_NEED_DUMMY_LIBRT_A=true
|
|
echo '!<arch>' > $_LIBRT_A
|
|
fi
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
if [ $_NEED_DUMMY_LIBRT_A ]; then
|
|
rm -f $_LIBRT_A
|
|
fi
|
|
}
|