wok view sqlite/receipt @ rev 14450

Up: geany* (1.23)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Apr 27 02:42:11 2013 +0200 (2013-04-27)
parents 493facea6dac
children 2a5cc8208d36
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3071602
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 TARBALL="$PACKAGE-src-${_realver}.zip"
10 DEPENDS="libsqlite"
11 BUILD_DEPENDS="tcl"
12 WEB_SITE="http://www.sqlite.org/"
13 WGET_URL="http://www.sqlite.org/2013/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
20 ./configure \
21 --prefix=/usr \
22 --disable-tcl \
23 --disable-readline \
24 --enable-load-extension \
25 LDFLAGS=-ldl \
26 $CONFIGURE_ARGS &&
27 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
28 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 # compile lemon here instead of in lemon
32 if [ -f $src/lemon ]; then
33 rm $src/lemon
34 fi
35 cp $src/tool/lemon.c .
36 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
37 echo -n "Compiling lemon..."
38 gcc -o lemon lemon.c && status
39 mkdir -p $DESTDIR/usr/share/lemon
40 cp -a $src/lemon $DESTDIR/usr/bin
41 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 if [ -f $fs/usr/bin/lemon ]; then
51 rm -f $fs/usr/bin/lemon
52 fi
53 }