wok-current view sqlite/receipt @ rev 25351
updated tesseract and tesseract-dev (3.02.02 -> 5.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 26 13:57:27 2022 +0100 (2022-07-26) |
parents | 80d30b02c821 |
children | 5926178cd6fa |
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 }