aboutsummaryrefslogtreecommitdiff
path: root/extra/sqlite/build
blob: 3e1cb1b851c5545e5afcc760373c43bc7bbbffc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

export CPPFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1"

clsed 's/ -ltinfo//g' configure

./configure \
    --prefix=/usr \
    --enable-threadsafe \
    --enable-dynamic-extensions \
    --enable-fts5

make
make DESTDIR="$1" install

# Build sqlite manual pages
cd mdoc

./configure
make

mkdir -p "$1/usr/share/man/man3"
./sqlite2mdoc -p "$1/usr/share/man/man3" "$1/usr/include/sqlite3.h"