blob: 4623a7811415f80a13113d8213ff5bd4fbcefa2d (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of sqlite
pkgbase="sqlite"
pkgname=sqlite-static
_srcver=3120100
pkgver=3.12.1
pkgrel=1
pkgdesc="A C library that implements an SQL database engine (static libraries only)"
arch=('i686' 'x86_64' 'armv7h')
license=('custom:Public Domain')
url="http://www.sqlite.org/"
makedepends=('tcl' 'readline')
source=(http://www.sqlite.org/2016/sqlite-src-${_srcver}.zip)
options=('!emptydirs' '!makeflags' 'staticlibs') # json extensions breaks parallel build
sha1sums=('f3f76c0f07a37e085eb504460a5663bcff53b6ad')
prepare() {
cd sqlite-src-$_srcver
# autoreconf -vfi
}
build() {
export CPPFLAGS="$CPPFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY \
-DSQLITE_ENABLE_DBSTAT_VTAB=1 \
-DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
-DSQLITE_SECURE_DELETE"
# build sqlite
cd sqlite-src-$_srcver
./configure --prefix=/usr \
--enable-static \
--disable-amalgamation \
--enable-fts3 \
--enable-fts4 \
--enable-fts5 \
--enable-rtree \
--enable-json1 \
TCLLIBDIR=/usr/lib/sqlite$pkgver
make
# build additional tools
make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
}
package() {
pkgdesc="A C library that implements an SQL database engine (static libraries only)"
depends=('sqlite')
cd sqlite-src-$_srcver
make DESTDIR=${pkgdir} install
# remove conflicting files
rm -vr ${pkgdir}/usr/{bin,include,lib/{pkgconfig,sqlite*}}
rm -v ${pkgdir}/usr/lib/lib*.so*
}
|