wok view sqlite/receipt @ rev 18650

Add libsqlite-tcl
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 02 11:54:07 2015 +0100 (2015-12-02)
parents 4834e7392dfa
children a77b556923e9
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3081101
5 VERSION="${_realver:0:1}.${_realver:2:1}.${_realver:3:2}.${_realver:6:6}"
6 CATEGORY="office"
7 SHORT_DESC="Small SQL database engine."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="PublicDomain"
10 TARBALL="$PACKAGE-src-${_realver}.zip"
11 WEB_SITE="http://www.sqlite.org/"
12 WGET_URL="http://www.sqlite.org/2015/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="libsqlite"
16 BUILD_DEPENDS="tcl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
22 ./configure \
23 --prefix=/usr \
24 --disable-readline \
25 --enable-load-extension \
26 LDFLAGS=-ldl \
27 $CONFIGURE_ARGS &&
28 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
29 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 # compile lemon here instead of in lemon
33 if [ -f $src/lemon ]; then
34 rm $src/lemon
35 fi
36 cp $src/tool/lemon.c .
37 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
38 echo -n "Compiling lemon..."
39 gcc -o lemon lemon.c && status
40 mkdir -p $DESTDIR/usr/share/lemon
41 cp -a $src/lemon $DESTDIR/usr/bin
42 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
50 cp -a $install/usr/bin $fs/usr
51 if [ -f $fs/usr/bin/lemon ]; then
52 rm -f $fs/usr/bin/lemon
53 fi
54 }