2016-11-29 20:56:21 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.sqlite.org
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine"
|
2016-08-30 23:21:31 +02:00
|
|
|
# Note: Updating this version requires bumping the tcl package as well.
|
2016-08-11 00:00:45 +02:00
|
|
|
_SQLITE_MAJOR=3
|
2018-01-23 22:35:31 +01:00
|
|
|
_SQLITE_MINOR=22
|
2017-10-26 00:20:07 +02:00
|
|
|
_SQLITE_PATCH=0
|
2016-08-11 00:00:45 +02:00
|
|
|
TERMUX_PKG_VERSION=${_SQLITE_MAJOR}.${_SQLITE_MINOR}.${_SQLITE_PATCH}
|
2018-01-23 22:35:31 +01:00
|
|
|
TERMUX_PKG_SHA256=2824ab1238b706bc66127320afbdffb096361130e23291f26928a027b885c612
|
|
|
|
TERMUX_PKG_SRCURL=https://www.sqlite.org/2018/sqlite-autoconf-${_SQLITE_MAJOR}${_SQLITE_MINOR}0${_SQLITE_PATCH}00.tar.gz
|
2017-07-09 22:41:48 +02:00
|
|
|
# ac_cv_func_strerror_r=no as strerror_r() with the
|
|
|
|
# GNU signature is only # available in android-23:
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_func_strerror_r=no
|
|
|
|
--enable-readline
|
|
|
|
"
|
2017-08-15 18:25:42 +02:00
|
|
|
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="src/libsqlite/tclsqlite3.c"
|
2017-07-09 22:41:48 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
CPPFLAGS+=" -Werror"
|
|
|
|
}
|
2017-08-15 18:25:42 +02:00
|
|
|
|
|
|
|
termux_step_post_make_install () {
|
|
|
|
mkdir -p $TERMUX_PREFIX/src/libsqlite
|
|
|
|
cp $TERMUX_PKG_SRCDIR/tea/generic/tclsqlite3.c $TERMUX_PREFIX/src/libsqlite/tclsqlite3.c
|
|
|
|
}
|