new package: duckdb
This commit is contained in:
parent
845e923862
commit
3dda7d6851
12
packages/libduckdb/build.sh
Normal file
12
packages/libduckdb/build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://duckdb.org/
|
||||
TERMUX_PKG_DESCRIPTION="An in-process SQL OLAP database management system"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.3.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/duckdb/duckdb/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=ae2367d0a393be59e137ffa975f48f60b113b2a72aacc24fbc59afa0cbc3a511
|
||||
TERMUX_PKG_DEPENDS="libc++"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
LDFLAGS+=" -llog"
|
||||
}
|
2
packages/libduckdb/duckdb.subpackage.sh
Normal file
2
packages/libduckdb/duckdb.subpackage.sh
Normal file
@ -0,0 +1,2 @@
|
||||
TERMUX_SUBPKG_INCLUDE="bin/duckdb"
|
||||
TERMUX_SUBPKG_DESCRIPTION="DuckDB Command Line Interface (CLI) shell"
|
11
packages/libduckdb/tools-shell-shell.c.patch
Normal file
11
packages/libduckdb/tools-shell-shell.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/tools/shell/shell.c
|
||||
+++ b/tools/shell/shell.c
|
||||
@@ -15301,7 +15301,7 @@
|
||||
#ifdef _WIN32
|
||||
zTemp = "\\tmp";
|
||||
#else
|
||||
- zTemp = "/tmp";
|
||||
+ zTemp = "@TERMUX_PREFIX@/tmp";
|
||||
#endif
|
||||
}
|
||||
p->zTempFile = sqlite3_mprintf("%s/temp%llx.%s", zTemp, r, zSuffix);
|
Loading…
Reference in New Issue
Block a user