wok annotate sqlite/receipt @ rev 25778

Up fdutils (5.6), lite (1.11), vlgothic-fonts (20230918)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 20 09:06:10 2024 +0000 (2 months ago)
parents 80d30b02c821
children
rev   line source
pankso@6 1 # SliTaz package receipt.
pankso@6 2
pankso@6 3 PACKAGE="sqlite"
Hans-G?nter@25320 4 _realver="3390200"
pascal@23686 5 VERSION="$(printf "%d.%d.%d" ${_realver:0:1} ${_realver:1:2} ${_realver:3:2})"
pankso@205 6 CATEGORY="office"
pankso@6 7 SHORT_DESC="Small SQL database engine."
pankso@6 8 MAINTAINER="pankso@slitaz.org"
pascal@15379 9 LICENSE="PublicDomain"
Hans-G?nter@21949 10 WEB_SITE="https://www.sqlite.org/index.html"
Hans-G?nter@21949 11
slaxemulator@12422 12 TARBALL="$PACKAGE-src-${_realver}.zip"
Hans-G?nter@25320 13 WGET_URL="http://www.sqlite.org/2022/$TARBALL"
Hans-G?nter@21949 14
pascal@18930 15 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
pascal@15379 16
erjo@8741 17 DEPENDS="libsqlite"
pascal@18650 18 BUILD_DEPENDS="tcl-dev"
pankso@6 19
Hans-G?nter@21949 20 HOST_ARCH="i486 arm"
Hans-G?nter@21949 21
pascal@24074 22 current_version()
pascal@24074 23 {
pascal@24075 24 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24074 25 sed '/Version [0-9]/!d;s|.*Version \(.*\)<.*|\1|' | sed q
pascal@24074 26 }
pascal@24074 27
pankso@6 28 # Rules to configure and make the package.
pankso@6 29 compile_rules()
pankso@6 30 {
pascal@19120 31 case "$ARCH" in
Hans-G?nter@25320 32 (arm*)
Hans-G?nter@25320 33 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
Hans-G?nter@25320 34 ;;
pascal@19120 35 esac
Hans-G?nter@23663 36
pascal@18930 37 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
pascal@18930 38 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
pascal@18930 39 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
Hans-G?nter@21949 40
devl547@19901 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"
Hans-G?nter@23663 42
Hans-G?nter@21949 43 ./configure \
Hans-G?nter@21949 44 --prefix=/usr \
Hans-G?nter@21949 45 --disable-readline \
Hans-G?nter@21949 46 --enable-load-extension \
Hans-G?nter@21949 47 LDFLAGS="$LDFLAGS -ldl" \
Hans-G?nter@21949 48 $ARCH_ARGS \
pankso@3156 49 $CONFIGURE_ARGS &&
Hans-G?nter@21949 50 make &&
Hans-G?nter@21949 51 make install
pankso@6 52 }
pankso@6 53
pankso@6 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@6 55 genpkg_rules()
pankso@6 56 {
Hans-G?nter@25320 57 cook_copy_folders bin
Hans-G?nter@21949 58 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
Hans-G?nter@21949 59
Hans-G?nter@23663 60 chmod +x $fs/usr/bin/mysql2sqlite.sh
Hans-G?nter@21949 61 if [ -f $fs/usr/bin/lemon ]
Hans-G?nter@21949 62 then
gokhlayeh@11392 63 rm -f $fs/usr/bin/lemon
gokhlayeh@11392 64 fi
pankso@6 65 }