Index: server/buildpkgs/sqlite3/build.sh ================================================================== --- server/buildpkgs/sqlite3/build.sh +++ server/buildpkgs/sqlite3/build.sh @@ -1,13 +1,14 @@ #! /bin/bash # Define parameters -VERS=3.7.2 +VERS=3.7.7.1 VERSUNDER="$(echo "${VERS}" | sed 's@\.@_@g')" -SRC="src/sqlite-${VERSUNDER}.tar.gz" -SRCURL="http://www.sqlite.org/sqlite-${VERSUNDER}-tea.tar.gz" -BUILDDIR="sqlite${VERS}" +VERSZEROS="$(echo "${VERS}" | sed 's@\.\([0-9]\)\.@.0\1.@g;s@\.\([0-9]\)\.@.0\1.@g;s@\.\([0-9]\)$@.0\1@g;s@\.@@g')" +SRC="src/sqlite-${VERS}.tar.gz" +SRCURL="http://www.sqlite.org/sqlite-autoconf-${VERSZEROS}.tar.gz" +BUILDDIR="sqlite-autoconf-${VERSZEROS}" export VERS SRC SRCURL BUILDDIR # Load common functions source ../common.sh @@ -24,12 +25,16 @@ cd build/ || exit 1 gzip -dc "../${SRC}" | tar -xf - cd "${BUILDDIR}" || exit 1 + cd "tea" || exit 1 chmod +x tclconfig/install-sh + + CPPFLAGS="-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS" + export CPPFLAGS bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} ${MAKE:-make} || exit 1 @@ -36,8 +41,8 @@ ${MAKE:-make} install-binaries PKG_DIR='' || exit 1 rm -f "${PLATDIR}"/*.a ) || exit 1 -../create_teapot "${PLATDIR}/teapot.txt" "sqlite3" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "SQLite" +../create_teapot "${PLATDIR}/teapot.txt" "sqlite3" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "SQLite (with FTS3)" exit 0