wok annotate sqlite/receipt @ rev 21728

updated putty (0.67 -> 0.71)
author Hans-G?nter Theisgen
date Wed Jun 12 17:42:20 2019 +0100 (2019-06-12)
parents 78adcea3ecfb
children 7c756a80db16
rev   line source
pankso@6 1 # SliTaz package receipt.
pankso@6 2
pankso@6 3 PACKAGE="sqlite"
devl547@19901 4 _realver=3180000
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"
slaxemulator@12422 10 TARBALL="$PACKAGE-src-${_realver}.zip"
pascal@15379 11 WEB_SITE="http://www.sqlite.org/"
devl547@19901 12 WGET_URL="http://www.sqlite.org/2017/$TARBALL"
pascal@18930 13 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
pankso@16042 14 HOST_ARCH="i486 arm"
pascal@15379 15
erjo@8741 16 DEPENDS="libsqlite"
pascal@18650 17 BUILD_DEPENDS="tcl-dev"
pankso@6 18
pankso@6 19 # Rules to configure and make the package.
pankso@6 20 compile_rules()
pankso@6 21 {
pascal@19120 22 case "$ARCH" in
pascal@19120 23 arm*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
pascal@19120 24 esac
pascal@18930 25 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
pascal@18930 26 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
pascal@18930 27 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
devl547@19901 28 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"
pankso@612 29 ./configure \
pankso@612 30 --prefix=/usr \
pankso@2047 31 --disable-readline \
sygne@1984 32 --enable-load-extension \
pascal@19118 33 LDFLAGS="$LDFLAGS -ldl" \
pascal@19120 34 $ARCH_ARGS \
pankso@3156 35 $CONFIGURE_ARGS &&
devl547@19901 36 make && make install
pankso@6 37 }
pankso@6 38
pankso@6 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@6 40 genpkg_rules()
pankso@6 41 {
pascal@18930 42 mkdir -p $fs/usr/bin
erjo@8741 43
slaxemulator@11158 44 cp -a $install/usr/bin $fs/usr
pascal@18930 45 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
pascal@18930 46 chmod +x $fs/usr/bin/mysql2sqlite.sh
gokhlayeh@11392 47 if [ -f $fs/usr/bin/lemon ]; then
gokhlayeh@11392 48 rm -f $fs/usr/bin/lemon
gokhlayeh@11392 49 fi
pankso@6 50 }