wok-6.x annotate sqlite/receipt @ rev 22179

linld: spare up to 30k more for zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 09 13:26:32 2019 +0100 (2019-11-09)
parents 294c02abfd9f
children d2ed45aa2b7e
rev   line source
pankso@6 1 # SliTaz package receipt.
pankso@6 2
pankso@6 3 PACKAGE="sqlite"
Hans-G?nter@21949 4 _realver=3300000
devl547@19901 5 VERSION="${_realver:0:1}.${_realver:1:2}.${_realver:3:1}"
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@21949 13 WGET_URL="http://www.sqlite.org/2019/$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
pankso@6 22 # Rules to configure and make the package.
pankso@6 23 compile_rules()
pankso@6 24 {
pascal@19120 25 case "$ARCH" in
pascal@19120 26 arm*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
pascal@19120 27 esac
pascal@18930 28 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
pascal@18930 29 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
pascal@18930 30 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
Hans-G?nter@21949 31
devl547@19901 32 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@21949 33 ./configure \
Hans-G?nter@21949 34 --prefix=/usr \
Hans-G?nter@21949 35 --disable-readline \
Hans-G?nter@21949 36 --enable-load-extension \
Hans-G?nter@21949 37 LDFLAGS="$LDFLAGS -ldl" \
Hans-G?nter@21949 38 $ARCH_ARGS \
pankso@3156 39 $CONFIGURE_ARGS &&
Hans-G?nter@21949 40 make &&
Hans-G?nter@21949 41 make install
pankso@6 42 }
pankso@6 43
pankso@6 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@6 45 genpkg_rules()
pankso@6 46 {
pascal@18930 47 mkdir -p $fs/usr/bin
erjo@8741 48
Hans-G?nter@21949 49 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21949 50 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
Hans-G?nter@21949 51
pascal@18930 52 chmod +x $fs/usr/bin/mysql2sqlite.sh
Hans-G?nter@21949 53 if [ -f $fs/usr/bin/lemon ]
Hans-G?nter@21949 54 then
gokhlayeh@11392 55 rm -f $fs/usr/bin/lemon
gokhlayeh@11392 56 fi
pankso@6 57 }