new package: duckdb

This commit is contained in:
Tee KOBAYASHI 2021-12-24 07:54:45 +09:00 committed by Leonid Pliushch
parent 845e923862
commit 3dda7d6851
3 changed files with 25 additions and 0 deletions

View 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"
}

View File

@ -0,0 +1,2 @@
TERMUX_SUBPKG_INCLUDE="bin/duckdb"
TERMUX_SUBPKG_DESCRIPTION="DuckDB Command Line Interface (CLI) shell"

View 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);