termux-packages/packages/libsqlite/build.sh

25 lines
979 B
Bash
Raw Normal View History

2016-11-29 20:56:21 +01:00
TERMUX_PKG_HOMEPAGE=https://www.sqlite.org
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"
TERMUX_PKG_MAINTAINER="@termux"
# Note: Updating this version requires bumping libsqlite-tcl package as well.
2016-08-11 00:00:45 +02:00
_SQLITE_MAJOR=3
2022-02-26 11:02:56 +01:00
_SQLITE_MINOR=38
2022-04-29 07:54:15 +02:00
_SQLITE_PATCH=3
2022-02-26 11:02:56 +01:00
_SQLITE_YEAR=2022
2016-08-11 00:00:45 +02:00
TERMUX_PKG_VERSION=${_SQLITE_MAJOR}.${_SQLITE_MINOR}.${_SQLITE_PATCH}
2022-02-26 11:02:56 +01:00
TERMUX_PKG_SRCURL=https://www.sqlite.org/${_SQLITE_YEAR}/sqlite-autoconf-${_SQLITE_MAJOR}${_SQLITE_MINOR}0${_SQLITE_PATCH}00.tar.gz
2022-04-29 07:54:15 +02:00
TERMUX_PKG_SHA256=61f2dd93a2e38c33468b7125967c3218bf9f4dd8365def6025e314f905dc942e
2019-04-14 14:51:46 +02:00
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_BREAKS="libsqlite-dev"
TERMUX_PKG_REPLACES="libsqlite-dev"
2017-07-09 22:41:48 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-readline
--enable-fts3
2017-07-09 22:41:48 +02:00
"
termux_step_pre_configure() {
CPPFLAGS+=" -Werror -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1"
LDFLAGS+=" -lm"
2017-07-09 22:41:48 +02:00
}