wok-next view sqlite3/receipt @ rev 20976
Follow recent changes in the Python renames
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Sep 25 17:35:51 2018 +0300 (2018-09-25) |
parents | 10df65db91ad |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="sqlite3"
4 VERSION="3.24.0"
5 CATEGORY="database"
6 SHORT_DESC="Small SQL database engine"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://www.sqlite.org/"
11 TARBALL="sqlite-src-$(echo $VERSION | awk 'BEGIN{FS="."}{printf("%d%02d%02d00",$1,$2,$3)}').zip"
12 WGET_URL="https://www.sqlite.org/2018/$TARBALL"
13 # integrity check: https://www.sqlite.org/download.html
14 TARBALL_SHA1="fb558c49ee21a837713c4f1e7e413309aabdd9c7"
16 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
18 BUILD_DEPENDS="tcl-dev readline-dev zlib-dev"
19 SPLIT="lemon sqlite3-analyzer sqlite3 libsqlite3 libsqlite3-tcl sqlite3-dev"
21 compile_rules() {
22 case "$ARCH" in
23 arm*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
24 esac
26 [ -s "$SRC/mysql2sqlite.sh" ] || wget -P $SRC \
27 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
29 export CFLAGS="$CFLAGS \
30 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
31 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
32 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
33 -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
34 -DSQLITE_SECURE_DELETE \
35 -DSQLITE_MAX_VARIABLE_NUMBER=250000 \
36 -DSQLITE_MAX_EXPR_DEPTH=10000"
37 export CPPFLAGS="$CFLAGS"
39 ./configure \
40 --disable-static \
41 --disable-amalgamation \
42 --enable-fts3 \
43 --enable-fts4 \
44 --enable-fts5 \
45 --enable-rtree \
46 --enable-json1 \
47 TCLLIBDIR=/usr/lib/sqlite$VERSION \
48 $ARCH_ARGS \
49 $CONFIGURE_ARGS &&
50 fix libtool &&
51 make -j1 &&
52 make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer &&
53 make DESTDIR=$DESTDIR install || return 1
55 # recompiling lemon
56 [ -f $src/lemon ] && rm $src/lemon
57 cp $src/tool/lemon.c .
58 sed -i 's|lempar.c|/usr/share/lemon/lempar.c|' lemon.c
59 echo -n "Compiling lemon..."
60 gcc -o lemon lemon.c
61 status
62 install -Dm644 $src/lempar.c $install/usr/share/lemon/lempar.c
64 install -m755 showdb showjournal showstat4 showwal sqldiff lemon \
65 sqlite3_analyzer $SRC/mysql2sqlite.sh $install/usr/bin/
67 cook_pick_manpages sqlite3.1 autoconf/tea/doc/sqlite3.n
68 cook_pick_docs doc/*
69 }
71 genpkg_rules() {
72 case $PACKAGE in
73 lemon)
74 copy lemon lempar.c
75 CAT="system-tools|the LEMON Parser Generator"
76 DEPENDS=" "
77 ;;
78 sqlite3-analyzer)
79 copy sqlite3_analyzer
80 CAT="database|analysing database files"
81 DEPENDS="tcl"
82 ;;
83 sqlite3)
84 copy bin/ @rm
85 DEPENDS="readline zlib libsqlite3"
86 ;;
87 libsqlite3)
88 copy libsqlite3.so*
89 CAT="database|library"
90 DEPENDS=" "
91 ;;
92 libsqlite3-tcl)
93 copy libtclsqlite3.so pkgIndex.tcl
94 CAT="database|TCL library"
95 DEPENDS="libsqlite3 tcl"
96 ;;
97 sqlite3-dev)
98 copy @dev
99 DEPENDS="sqlite3 libsqlite3 libsqlite3-tcl lemon sqlite3-analyzer"
100 ;;
101 esac
102 }