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