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

export CPPFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1"

clsed 's/ -ltinfo//g' configure

./configure \
    --prefix=/usr \
    --enable-threadsafe \
    --disable-readline \
    --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"