2016-11-29 20:56:21 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.sqlite.org
|
2018-06-05 23:35:16 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Library implementing a self-contained and transactional SQL database engine"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="Public Domain"
|
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
|
2020-06-01 23:33:47 +02:00
|
|
|
_SQLITE_MINOR=32
|
2019-10-18 12:54:37 +02:00
|
|
|
_SQLITE_PATCH=1
|
2016-08-11 00:00:45 +02:00
|
|
|
TERMUX_PKG_VERSION=${_SQLITE_MAJOR}.${_SQLITE_MINOR}.${_SQLITE_PATCH}
|
2020-01-31 14:01:21 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.sqlite.org/2020/sqlite-autoconf-${_SQLITE_MAJOR}${_SQLITE_MINOR}0${_SQLITE_PATCH}00.tar.gz
|
2020-06-01 23:33:47 +02:00
|
|
|
TERMUX_PKG_SHA256=486748abfb16abd8af664e3a5f03b228e5f124682b0c942e157644bf6fff7d10
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_DEPENDS="zlib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libsqlite-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libsqlite-dev"
|
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
|
|
|
|
"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2019-06-23 21:07:48 +02:00
|
|
|
CPPFLAGS+=" -Werror -DSQLITE_ENABLE_DBSTAT_VTAB=1"
|
2018-06-05 23:35:16 +02:00
|
|
|
LDFLAGS+=" -lm"
|
2017-07-09 22:41:48 +02:00
|
|
|
}
|
2017-08-15 18:25:42 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2017-08-15 18:25:42 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/src/libsqlite
|
|
|
|
cp $TERMUX_PKG_SRCDIR/tea/generic/tclsqlite3.c $TERMUX_PREFIX/src/libsqlite/tclsqlite3.c
|
|
|
|
}
|