wok view sqlite/receipt @ rev 15539
Up: firefox-langpack-es_ES (17.0.11esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 24 17:36:28 2013 +0100 (2013-11-24) |
parents | d6fc9dba440e |
children | e4cda1000ec7 |
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 LICENSE="PublicDomain"
10 TARBALL="$PACKAGE-src-${_realver}.zip"
11 WEB_SITE="http://www.sqlite.org/"
12 WGET_URL="http://www.sqlite.org/2013/$TARBALL"
14 DEPENDS="libsqlite"
15 BUILD_DEPENDS="tcl"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
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-tcl \
25 --disable-readline \
26 --enable-load-extension \
27 LDFLAGS=-ldl \
28 $CONFIGURE_ARGS &&
29 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
30 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 # compile lemon here instead of in lemon
34 if [ -f $src/lemon ]; then
35 rm $src/lemon
36 fi
37 cp $src/tool/lemon.c .
38 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
39 echo -n "Compiling lemon..."
40 gcc -o lemon lemon.c && status
41 mkdir -p $DESTDIR/usr/share/lemon
42 cp -a $src/lemon $DESTDIR/usr/bin
43 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 if [ -f $fs/usr/bin/lemon ]; then
53 rm -f $fs/usr/bin/lemon
54 fi
55 }