wok-next view sqlite3/receipt @ rev 21678
updated getmail (4.41.0 -> 5.14)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 29 13:44:08 2020 +0100 (2020-06-29) |
parents | fa61cfb16a25 |
children |
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="devel@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://www.sqlite.org/index.html"
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 $PACKAGE-analyzer $PACKAGE libsqlite3 libsqlite3-tcl $PACKAGE-dev"
21 compile_rules() {
22 [ -s "$SRC/mysql2sqlite.sh" ] || wget -P $SRC \
23 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
25 export CFLAGS="$CFLAGS \
26 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
27 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
28 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
29 -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
30 -DSQLITE_SECURE_DELETE \
31 -DSQLITE_MAX_VARIABLE_NUMBER=250000 \
32 -DSQLITE_MAX_EXPR_DEPTH=10000"
33 export CPPFLAGS="$CFLAGS"
35 ./configure \
36 --disable-static \
37 --disable-amalgamation \
38 --enable-fts3 \
39 --enable-fts4 \
40 --enable-fts5 \
41 --enable-rtree \
42 --enable-json1 \
43 TCLLIBDIR=/usr/lib/sqlite$VERSION \
44 $CONFIGURE_ARGS &&
45 fix libtool &&
46 make -j1 &&
47 make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer &&
48 make DESTDIR=$install install || return 1
50 # recompiling lemon
51 [ -f $src/lemon ] && rm $src/lemon
52 cp $src/tool/lemon.c .
53 sed -i 's|lempar.c|/usr/share/lemon/lempar.c|' lemon.c
54 echo -n "Compiling lemon..."
55 gcc -o lemon lemon.c
56 status
57 install -Dm644 $src/lempar.c $install/usr/share/lemon/lempar.c
59 install -m755 showdb showjournal showstat4 showwal sqldiff lemon \
60 sqlite3_analyzer $SRC/mysql2sqlite.sh $install/usr/bin/
62 cook_pick_manpages sqlite3.1 autoconf/tea/doc/sqlite3.n
63 cook_pick_docs doc/*
64 }
66 genpkg_rules() {
67 case $PACKAGE in
68 lemon)
69 copy lemon lempar.c
70 CAT="system-tools|the LEMON Parser Generator"
71 DEPENDS=" "
72 ;;
73 sqlite3-analyzer)
74 copy sqlite3_analyzer
75 CAT="database|analysing database files"
76 DEPENDS="tcl"
77 ;;
78 sqlite3)
79 copy bin/ @rm
80 DEPENDS="readline zlib libsqlite3"
81 ;;
82 libsqlite3)
83 copy libsqlite3.so*
84 CAT="database|library"
85 DEPENDS=" "
86 ;;
87 libsqlite3-tcl)
88 copy libtclsqlite3.so pkgIndex.tcl
89 CAT="database|TCL library"
90 DEPENDS="libsqlite3 tcl"
91 ;;
92 sqlite3-dev)
93 copy @dev
94 DEPENDS="sqlite3 libsqlite3 libsqlite3-tcl lemon sqlite3-analyzer"
95 ;;
96 esac
97 }