wok-next view sqlite3/receipt @ rev 20443
The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 24 16:17:33 2018 +0200 (2018-02-24) |
parents | 9278a60d6895 |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="sqlite3"
4 VERSION="3.19.2"
5 version="3190200"
6 CATEGORY="database"
7 SHORT_DESC="Small SQL database engine"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="PublicDomain"
10 WEB_SITE="https://www.sqlite.org/"
12 TARBALL="sqlite-$VERSION.zip"
13 WGET_URL="https://www.sqlite.org/2017/sqlite-src-$version.zip"
15 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
17 BUILD_DEPENDS="tcl-dev"
18 SPLIT="libsqlite3 libsqlite3-tcl lemon sqlite3-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 arm*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;;
25 esac
27 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
28 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
29 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
31 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 \
32 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
33 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1"
35 ./configure \
36 --disable-static \
37 --disable-readline \
38 --enable-load-extension \
39 LDFLAGS="$LDFLAGS -ldl" \
40 $ARCH_ARGS \
41 $CONFIGURE_ARGS &&
42 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
43 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
44 make &&
45 make DESTDIR=$DESTDIR install
47 # compiling lemon
48 if [ -f $src/lemon ]; then
49 rm $src/lemon
50 fi
51 cp $src/tool/lemon.c .
52 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
53 echo -n "Compiling lemon..."
54 gcc -o lemon lemon.c && status
55 mkdir -p $install/usr/share/lemon
56 cp -a $src/lemon $install/usr/bin
57 cp -a $src/lempar.c $install/usr/share/lemon
59 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $install/usr/bin
60 chmod +x $install/usr/bin/mysql2sqlite.sh
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 case $PACKAGE in
67 sqlite3)
68 copy sqlite3 mysql2sqlite.sh
69 DEPENDS="libsqlite3"
70 PROVIDE="sqlite"
71 ;;
72 libsqlite3)
73 copy libsqlite3.so*
74 CAT="database|library"
75 DEPENDS=" "
76 PROVIDE="libsqlite"
77 ;;
78 libsqlite3-tcl)
79 copy tcl8.6/
80 CAT="database|TCL library"
81 DEPENDS="libsqlite3 tcl"
82 PROVIDE="libsqlite-tcl"
83 ;;
84 lemon)
85 copy lemon lempar.c
86 CAT="system-tools|The LEMON Parser Generator"
87 DEPENDS=" "
88 ;;
89 sqlite3-dev)
90 copy @dev
91 DEPENDS="sqlite3 libsqlite3 libsqlite3-tcl lemon"
92 PROVIDE="sqlite-dev"
93 ;;
94 esac
95 }