wok annotate sqlite/receipt @ rev 14831
Up: xfconf* (4.10.0)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:54:50 2013 +0200 (2013-07-17) |
parents | 493facea6dac |
children | 2a5cc8208d36 |
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" |
slaxemulator@12422 | 9 TARBALL="$PACKAGE-src-${_realver}.zip" |
erjo@8741 | 10 DEPENDS="libsqlite" |
slaxemulator@5351 | 11 BUILD_DEPENDS="tcl" |
pankso@6 | 12 WEB_SITE="http://www.sqlite.org/" |
pascal@14367 | 13 WGET_URL="http://www.sqlite.org/2013/$TARBALL" |
pankso@6 | 14 |
pankso@6 | 15 # Rules to configure and make the package. |
pankso@6 | 16 compile_rules() |
pankso@6 | 17 { |
pankso@6 | 18 cd $src |
slaxemulator@11158 | 19 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" |
pankso@612 | 20 ./configure \ |
pankso@612 | 21 --prefix=/usr \ |
pankso@612 | 22 --disable-tcl \ |
pankso@2047 | 23 --disable-readline \ |
sygne@1984 | 24 --enable-load-extension \ |
sygne@1984 | 25 LDFLAGS=-ldl \ |
pankso@3156 | 26 $CONFIGURE_ARGS && |
slaxemulator@5351 | 27 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool && |
slaxemulator@5351 | 28 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && |
pankso@3156 | 29 make && |
slaxemulator@10108 | 30 make DESTDIR=$DESTDIR install |
slaxemulator@6577 | 31 # compile lemon here instead of in lemon |
slaxemulator@6577 | 32 if [ -f $src/lemon ]; then |
slaxemulator@6577 | 33 rm $src/lemon |
slaxemulator@6577 | 34 fi |
slaxemulator@6577 | 35 cp $src/tool/lemon.c . |
slaxemulator@6577 | 36 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c |
slaxemulator@6577 | 37 echo -n "Compiling lemon..." |
slaxemulator@6577 | 38 gcc -o lemon lemon.c && status |
slaxemulator@10108 | 39 mkdir -p $DESTDIR/usr/share/lemon |
slaxemulator@10108 | 40 cp -a $src/lemon $DESTDIR/usr/bin |
slaxemulator@10108 | 41 cp -a $src/lempar.c $DESTDIR/usr/share/lemon |
pankso@6 | 42 } |
pankso@6 | 43 |
pankso@6 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 45 genpkg_rules() |
pankso@6 | 46 { |
slaxemulator@12964 | 47 mkdir -p $fs/usr |
erjo@8741 | 48 |
slaxemulator@11158 | 49 cp -a $install/usr/bin $fs/usr |
gokhlayeh@11392 | 50 if [ -f $fs/usr/bin/lemon ]; then |
gokhlayeh@11392 | 51 rm -f $fs/usr/bin/lemon |
gokhlayeh@11392 | 52 fi |
pankso@6 | 53 } |