wok view sqlite/receipt @ rev 21585
updated npth and npth-dev (1.5 -> 1.6)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 20 13:44:05 2019 +0100 (2019-05-20) |
parents | 78adcea3ecfb |
children | 7c756a80db16 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3180000
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 TARBALL="$PACKAGE-src-${_realver}.zip"
11 WEB_SITE="http://www.sqlite.org/"
12 WGET_URL="http://www.sqlite.org/2017/$TARBALL"
13 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
14 HOST_ARCH="i486 arm"
16 DEPENDS="libsqlite"
17 BUILD_DEPENDS="tcl-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 case "$ARCH" in
23 arm*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
24 esac
25 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
26 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
27 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
28 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"
29 ./configure \
30 --prefix=/usr \
31 --disable-readline \
32 --enable-load-extension \
33 LDFLAGS="$LDFLAGS -ldl" \
34 $ARCH_ARGS \
35 $CONFIGURE_ARGS &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
44 cp -a $install/usr/bin $fs/usr
45 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
46 chmod +x $fs/usr/bin/mysql2sqlite.sh
47 if [ -f $fs/usr/bin/lemon ]; then
48 rm -f $fs/usr/bin/lemon
49 fi
50 }