wok view sqlite/receipt @ rev 13677

Up: sqlite to 3.14.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 26 20:12:25 2012 +0000 (2012-11-26)
parents 4794a55e7b5d
children aec1594b57d7
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3071401
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/$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 }