wok-stable view sqlite/receipt @ rev 9773
libnsgif: clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 11 21:23:36 2011 +0200 (2011-05-11) |
parents | 07adb7cbd0c8 |
children | 7b63a08dff3f |
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _amalgamationver=3070600
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 cd $src
21 ./configure \
22 --prefix=/usr \
23 --disable-tcl \
24 --disable-readline \
25 --enable-load-extension \
26 LDFLAGS=-ldl \
27 $CONFIGURE_ARGS &&
28 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
29 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 # compile lemon here instead of in lemon
33 if [ -f $src/lemon ]; then
34 rm $src/lemon
35 fi
36 cp $src/tool/lemon.c .
37 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
38 echo -n "Compiling lemon..."
39 gcc -o lemon lemon.c && status
40 mkdir -p $PWD/_pkg/usr/share/lemon
41 cp -a $src/lemon $PWD/_pkg/usr/bin
42 cp -a $src/lempar.c $PWD/_pkg/usr/share/lemon
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
50 cp -a $_pkg/usr/bin $fs/usr
51 [ -f $fs/usr/bin/lemon ] && rm -f $fs/usr/bin/lemon
52 }