wok-6.x annotate sqlite/receipt @ rev 16702
Up: lxpanel (0.6.2) and sed cpu plugin to match default desktop color
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 26 20:20:32 2014 +0200 (2014-05-26) |
parents | 2a5cc8208d36 |
children | 79d891358297 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="sqlite" |
pascal@14366 | 4 _realver=3071602 |
slaxemulator@13677 | 5 VERSION="${_realver:0:1}.${_realver:2:1}.${_realver:3:2}.${_realver:6:6}" |
pankso@205 | 6 CATEGORY="office" |
pankso@6 | 7 SHORT_DESC="Small SQL database engine." |
pankso@6 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 9 LICENSE="PublicDomain" |
slaxemulator@12422 | 10 TARBALL="$PACKAGE-src-${_realver}.zip" |
pascal@15379 | 11 WEB_SITE="http://www.sqlite.org/" |
pascal@15379 | 12 WGET_URL="http://www.sqlite.org/2013/$TARBALL" |
pankso@16042 | 13 HOST_ARCH="i486 arm" |
pascal@15379 | 14 |
erjo@8741 | 15 DEPENDS="libsqlite" |
slaxemulator@5351 | 16 BUILD_DEPENDS="tcl" |
pankso@6 | 17 |
pankso@6 | 18 # Rules to configure and make the package. |
pankso@6 | 19 compile_rules() |
pankso@6 | 20 { |
pankso@6 | 21 cd $src |
slaxemulator@11158 | 22 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" |
pankso@612 | 23 ./configure \ |
pankso@612 | 24 --prefix=/usr \ |
pankso@612 | 25 --disable-tcl \ |
pankso@2047 | 26 --disable-readline \ |
sygne@1984 | 27 --enable-load-extension \ |
sygne@1984 | 28 LDFLAGS=-ldl \ |
pankso@3156 | 29 $CONFIGURE_ARGS && |
slaxemulator@5351 | 30 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool && |
slaxemulator@5351 | 31 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && |
pankso@3156 | 32 make && |
slaxemulator@10108 | 33 make DESTDIR=$DESTDIR install |
slaxemulator@6577 | 34 # compile lemon here instead of in lemon |
slaxemulator@6577 | 35 if [ -f $src/lemon ]; then |
slaxemulator@6577 | 36 rm $src/lemon |
slaxemulator@6577 | 37 fi |
slaxemulator@6577 | 38 cp $src/tool/lemon.c . |
slaxemulator@6577 | 39 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c |
slaxemulator@6577 | 40 echo -n "Compiling lemon..." |
slaxemulator@6577 | 41 gcc -o lemon lemon.c && status |
slaxemulator@10108 | 42 mkdir -p $DESTDIR/usr/share/lemon |
slaxemulator@10108 | 43 cp -a $src/lemon $DESTDIR/usr/bin |
slaxemulator@10108 | 44 cp -a $src/lempar.c $DESTDIR/usr/share/lemon |
pankso@6 | 45 } |
pankso@6 | 46 |
pankso@6 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 48 genpkg_rules() |
pankso@6 | 49 { |
slaxemulator@12964 | 50 mkdir -p $fs/usr |
erjo@8741 | 51 |
slaxemulator@11158 | 52 cp -a $install/usr/bin $fs/usr |
gokhlayeh@11392 | 53 if [ -f $fs/usr/bin/lemon ]; then |
gokhlayeh@11392 | 54 rm -f $fs/usr/bin/lemon |
gokhlayeh@11392 | 55 fi |
pankso@6 | 56 } |