wok view sqlite/receipt @ rev 17737

python-lxml: update bdeps
author Yuri Pourre <yuripourre@gmail.com>
date Fri Mar 06 10:03:18 2015 -0300 (2015-03-06)
parents 2a5cc8208d36
children 79d891358297
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"
13 HOST_ARCH="i486 arm"
15 DEPENDS="libsqlite"
16 BUILD_DEPENDS="tcl"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
23 ./configure \
24 --prefix=/usr \
25 --disable-tcl \
26 --disable-readline \
27 --enable-load-extension \
28 LDFLAGS=-ldl \
29 $CONFIGURE_ARGS &&
30 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
31 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 # compile lemon here instead of in lemon
35 if [ -f $src/lemon ]; then
36 rm $src/lemon
37 fi
38 cp $src/tool/lemon.c .
39 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
40 echo -n "Compiling lemon..."
41 gcc -o lemon lemon.c && status
42 mkdir -p $DESTDIR/usr/share/lemon
43 cp -a $src/lemon $DESTDIR/usr/bin
44 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
52 cp -a $install/usr/bin $fs/usr
53 if [ -f $fs/usr/bin/lemon ]; then
54 rm -f $fs/usr/bin/lemon
55 fi
56 }