wok-6.x annotate sqlite/receipt @ rev 23685
sqlite: fix version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 26 16:28:39 2020 +0000 (2020-04-26) |
parents | e6c6f4dfec26 |
children | 4963cd31b894 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="sqlite" |
Hans-G?nter@23663 | 4 _realver="3310100" |
pascal@23685 | 5 VERSION="$(printf "%d.%d.%d" ${_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@23663 | 13 WGET_URL="https://www.sqlite.org/2020/$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 |
Hans-G?nter@23663 | 26 arm*) |
Hans-G?nter@23663 | 27 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;; |
pascal@19120 | 28 esac |
Hans-G?nter@23663 | 29 |
pascal@18930 | 30 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] || |
pascal@18930 | 31 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \ |
pascal@18930 | 32 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh |
Hans-G?nter@21949 | 33 |
devl547@19901 | 34 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 | 35 |
Hans-G?nter@21949 | 36 ./configure \ |
Hans-G?nter@21949 | 37 --prefix=/usr \ |
Hans-G?nter@21949 | 38 --disable-readline \ |
Hans-G?nter@21949 | 39 --enable-load-extension \ |
Hans-G?nter@21949 | 40 LDFLAGS="$LDFLAGS -ldl" \ |
Hans-G?nter@21949 | 41 $ARCH_ARGS \ |
pankso@3156 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@21949 | 43 make && |
Hans-G?nter@21949 | 44 make install |
pankso@6 | 45 } |
pankso@6 | 46 |
pankso@6 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 48 genpkg_rules() |
pankso@6 | 49 { |
pascal@18930 | 50 mkdir -p $fs/usr/bin |
erjo@8741 | 51 |
Hans-G?nter@21949 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21949 | 53 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin |
Hans-G?nter@21949 | 54 |
Hans-G?nter@23663 | 55 chmod +x $fs/usr/bin/mysql2sqlite.sh |
Hans-G?nter@21949 | 56 if [ -f $fs/usr/bin/lemon ] |
Hans-G?nter@21949 | 57 then |
gokhlayeh@11392 | 58 rm -f $fs/usr/bin/lemon |
gokhlayeh@11392 | 59 fi |
pankso@6 | 60 } |