2012-11-21 11:12:43 -06:00
|
|
|
# Description: SQL database engine
|
2017-01-28 18:30:02 +11: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
|
2012-11-21 11:12:43 -06:00
|
|
|
# Depends on: ncurses-32 readline-32 sqlite3
|
|
|
|
|
|
|
|
name=sqlite3-32
|
2017-05-31 00:13:46 +10:00
|
|
|
version=3.19.2
|
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//./ })
|
|
|
|
|
2017-01-28 18:30:02 +11:00
|
|
|
source=(https://www.sqlite.org/2017/sqlite-autoconf-${_version}.tar.gz)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
2015-07-31 21:48:09 +10:00
|
|
|
build() {
|
2012-11-21 11:12:43 -06:00
|
|
|
cd sqlite-autoconf-${_version}
|
2015-09-21 20:59:35 +10:00
|
|
|
|
2016-10-16 13:05:26 +11:00
|
|
|
CONFIG_SHELL=/bin/bash \
|
2013-03-20 02:35:42 +11:00
|
|
|
CFLAGS="-DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
2016-10-16 13:05:26 +11:00
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
2017-02-05 12:44:55 +11:00
|
|
|
-DSQLITE_ENABLE_FTS3=1 $CFLAGS" \
|
2016-10-16 13:05:26 +11:00
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 --enable-readline
|
2015-09-21 20:59:35 +10:00
|
|
|
|
2016-10-16 13:05:26 +11:00
|
|
|
make
|
2012-11-21 11:12:43 -06:00
|
|
|
make DESTDIR=$PKG install
|
2015-09-21 20:59:35 +10:00
|
|
|
|
2016-02-18 21:17:02 +11:00
|
|
|
rm -r $PKG/usr/{bin,include,share/man,share}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|