mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-29 15:10:15 +00:00
Import upstream commit 76e48f4d66
to fix the following compiler error.
tclsqlite3.c:56:15: error: cannot combine with previous 'int' declaration specifier
56 | typedef int Tcl_Size;
| ^
<command line>:18:18: note: expanded from macro 'Tcl_Size'
18 | #define Tcl_Size int
| ^
tclsqlite3.c:56:3: error: typedef requires a name [-Werror,-Wmissing-declarations]
56 | typedef int Tcl_Size;
| ^~~~~~~~~~~~~~~~~~~~
33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.sqlite.org
|
|
TERMUX_PKG_DESCRIPTION="Library implementing a self-contained and transactional SQL database engine"
|
|
TERMUX_PKG_LICENSE="Public Domain"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.47.0"
|
|
_SQLITE_YEAR=2024
|
|
TERMUX_PKG_SRCURL=https://www.sqlite.org/${_SQLITE_YEAR}/sqlite-autoconf-$(sed 's/\./''/; s/\./0/' <<< "$TERMUX_PKG_VERSION")00.tar.gz
|
|
TERMUX_PKG_SHA256=83eb21a6f6a649f506df8bd3aab85a08f7556ceed5dbd8dea743ea003fc3a957
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="zlib"
|
|
TERMUX_PKG_BUILD_DEPENDS="tcl"
|
|
TERMUX_PKG_BREAKS="libsqlite-dev"
|
|
TERMUX_PKG_REPLACES="libsqlite-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-readline
|
|
--enable-fts3
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CPPFLAGS+=" -Werror -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1"
|
|
LDFLAGS+=" -lm"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
echo -e "termux - building libsqlite-tcl for arch ${TERMUX_ARCH}..."
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-tcl=${TERMUX_PREFIX}/lib --with-system-sqlite"
|
|
TERMUX_PKG_SRCDIR+="/tea"
|
|
rm -rf "$TERMUX_PKG_TMPDIR/config-scripts"
|
|
termux_step_configure
|
|
termux_step_make
|
|
termux_step_make_install
|
|
}
|