wok view sqlite/receipt @ rev 22058

updated turses (0.2.7 -> 0.3.1)
author Hans-G?nter Theisgen
date Wed Oct 23 17:09:16 2019 +0100 (2019-10-23)
parents 294c02abfd9f
children d2ed45aa2b7e
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3300000
5 VERSION="${_realver:0:1}.${_realver:1:2}.${_realver:3:1}"
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="http://www.sqlite.org/2019/$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*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
27 esac
28 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
29 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
30 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
32 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"
33 ./configure \
34 --prefix=/usr \
35 --disable-readline \
36 --enable-load-extension \
37 LDFLAGS="$LDFLAGS -ldl" \
38 $ARCH_ARGS \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/bin
49 cp -a $install/usr/bin $fs/usr
50 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
52 chmod +x $fs/usr/bin/mysql2sqlite.sh
53 if [ -f $fs/usr/bin/lemon ]
54 then
55 rm -f $fs/usr/bin/lemon
56 fi
57 }