wok-6.x view sqlite/receipt @ rev 24429
updated collectd (5.10.0 -> 5.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 12 15:50:46 2022 +0100 (2022-02-12) |
parents | 3e2a0347b2f1 |
children | 6f5db10f8f5c |
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 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 esac
36 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
37 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
38 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
40 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"
42 ./configure \
43 --prefix=/usr \
44 --disable-readline \
45 --enable-load-extension \
46 LDFLAGS="$LDFLAGS -ldl" \
47 $ARCH_ARGS \
48 $CONFIGURE_ARGS &&
49 make &&
50 make install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/bin
58 cp -a $install/usr/bin $fs/usr
59 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
61 chmod +x $fs/usr/bin/mysql2sqlite.sh
62 if [ -f $fs/usr/bin/lemon ]
63 then
64 rm -f $fs/usr/bin/lemon
65 fi
66 }