2012-11-21 11:12:43 -06:00
|
|
|
# Description: SQL database engine
|
2022-01-11 12:22:25 +01:00
|
|
|
# URL: https://www.sqlite.org/
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2017-11-01 22:41:39 +11:00
|
|
|
# Depends on: readline-32 sqlite3
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=sqlite3-32
|
2025-01-14 19:59:02 +01:00
|
|
|
version=3.48.0
|
2017-03-02 22:23:04 +11:00
|
|
|
release=1
|
2012-11-21 11:12:43 -06:00
|
|
|
_version=$(printf "%i%.2i%.2i%.2i" ${version//./ })
|
|
|
|
|
2025-01-14 19:59:02 +01:00
|
|
|
source=(https://www.sqlite.org/2025/sqlite-autoconf-${_version}.tar.gz)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
2015-07-31 21:48:09 +10:00
|
|
|
build() {
|
2022-01-11 12:22:25 +01:00
|
|
|
cd sqlite-autoconf-${_version}
|
2015-09-21 20:59:35 +10:00
|
|
|
|
2022-01-11 12:22:25 +01:00
|
|
|
CFLAGS="-DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
|
|
|
-DSQLITE_ENABLE_FTS3=1 $CFLAGS" \
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 --enable-readline
|
2015-09-21 20:59:35 +10:00
|
|
|
|
2022-01-11 12:22:25 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2015-09-21 20:59:35 +10:00
|
|
|
|
2022-01-11 12:22:25 +01:00
|
|
|
rm -r $PKG/usr/{bin,include,share/man,share}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|