wok view sqlite/receipt @ rev 8741

sqlite: split package
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Feb 19 21:49:37 2011 +0100 (2011-02-19)
parents b50123d7512e
children 07adb7cbd0c8
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _amalgamationver=3070500
5 _amalgamationver2=${_amalgamationver/00/}
6 VERSION="${_amalgamationver2//0/.}"
7 CATEGORY="office"
8 SHORT_DESC="Small SQL database engine."
9 MAINTAINER="pankso@slitaz.org"
10 TARBALL="$PACKAGE-src-${_amalgamationver}.zip"
11 DEPENDS="libsqlite"
12 BUILD_DEPENDS="tcl"
13 WEB_SITE="http://www.sqlite.org/"
14 WGET_URL="http://www.sqlite.org/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 src=$WOK/$PACKAGE/$PACKAGE-src-${_amalgamationver}
20 cd $src
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=$PWD/_pkg 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
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 _pkg=$WOK/$PACKAGE/$PACKAGE-src-${_amalgamationver}/_pkg
48 mkdir -p $fs/usr
50 cp -a $_pkg/usr/bin $fs/usr
51 }