wok-current view sqlite/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (18 months ago) |
parents | 80d30b02c821 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver="3390200"
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="http://www.sqlite.org/2022/$TARBALL"
15 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
17 DEPENDS="libsqlite"
18 BUILD_DEPENDS="tcl-dev"
20 HOST_ARCH="i486 arm"
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed '/Version [0-9]/!d;s|.*Version \(.*\)<.*|\1|' | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 case "$ARCH" in
32 (arm*)
33 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
34 ;;
35 esac
37 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
38 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
39 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
41 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"
43 ./configure \
44 --prefix=/usr \
45 --disable-readline \
46 --enable-load-extension \
47 LDFLAGS="$LDFLAGS -ldl" \
48 $ARCH_ARGS \
49 $CONFIGURE_ARGS &&
50 make &&
51 make install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 cook_copy_folders bin
58 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
60 chmod +x $fs/usr/bin/mysql2sqlite.sh
61 if [ -f $fs/usr/bin/lemon ]
62 then
63 rm -f $fs/usr/bin/lemon
64 fi
65 }