wok view sqlite/receipt @ rev 23836

Up jbig2dec (0.18), metasploit (5.0.91), nginx (1.19.0), spamassassin (3.4.4), sqlite (3.32.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 10:15:25 2020 +0000 (2020-06-01)
parents 4963cd31b894
children 3e2a0347b2f1
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver="3320100"
5 VERSION="$(printf "%d.%d.%d" ${_realver:0:1} ${_realver:1:2} ${_realver:3:2})"
6 CATEGORY="office"
7 SHORT_DESC="Small SQL database engine."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="PublicDomain"
10 WEB_SITE="https://www.sqlite.org/index.html"
12 TARBALL="$PACKAGE-src-${_realver}.zip"
13 WGET_URL="https://www.sqlite.org/2020/$TARBALL"
15 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
17 DEPENDS="libsqlite"
18 BUILD_DEPENDS="tcl-dev"
20 HOST_ARCH="i486 arm"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 case "$ARCH" in
26 arm*)
27 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
28 esac
30 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
31 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
32 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
34 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DTCLSH=1"
36 ./configure \
37 --prefix=/usr \
38 --disable-readline \
39 --enable-load-extension \
40 LDFLAGS="$LDFLAGS -ldl" \
41 $ARCH_ARGS \
42 $CONFIGURE_ARGS &&
43 make &&
44 make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/bin
52 cp -a $install/usr/bin $fs/usr
53 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
55 chmod +x $fs/usr/bin/mysql2sqlite.sh
56 if [ -f $fs/usr/bin/lemon ]
57 then
58 rm -f $fs/usr/bin/lemon
59 fi
60 }