new package: libarrow-cpp
This commit is contained in:
parent
76cf1f3ca6
commit
ad004cdae4
28
packages/libarrow-cpp/build.sh
Normal file
28
packages/libarrow-cpp/build.sh
Normal file
@ -0,0 +1,28 @@
|
||||
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"
|
||||
TERMUX_PKG_VERSION=7.0.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/apache/arrow/archive/refs/tags/apache-arrow-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=57e13c62f27b710e1de54fd30faed612aefa22aa41fa2c0c3bacd204dd18a8f3
|
||||
TERMUX_PKG_DEPENDS="libc++"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DARROW_JEMALLOC=OFF
|
||||
"
|
||||
|
||||
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
|
||||
}
|
11
packages/libarrow-cpp/cpp-src-arrow-util-io_util.cc.patch
Normal file
11
packages/libarrow-cpp/cpp-src-arrow-util-io_util.cc.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/cpp/src/arrow/util/io_util.cc
|
||||
+++ b/cpp/src/arrow/util/io_util.cc
|
||||
@@ -1448,7 +1448,7 @@
|
||||
#else
|
||||
selectors = {{"TMPDIR", ""}, {"TMP", ""}, {"TEMP", ""}, {"TEMPDIR", ""}};
|
||||
#ifdef __ANDROID__
|
||||
- fallback_tmp = "/data/local/tmp";
|
||||
+ fallback_tmp = "@TERMUX_PREFIX@/tmp";
|
||||
#else
|
||||
fallback_tmp = "/tmp";
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user