wok-next view sqlite/receipt @ rev 7249

Up: xorg-xtrans to 1.2.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Nov 14 15:44:20 2010 +0000 (2010-11-14)
parents 17129723bbc4
children a7c1367aeeaf
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 VERSION="3.7.3"
5 CATEGORY="office"
6 SHORT_DESC="Small SQL database engine."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 BUILD_DEPENDS="tcl"
10 WEB_SITE="http://www.sqlite.org/"
11 WGET_URL="http://www.sqlite.org/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure \
18 --prefix=/usr \
19 --disable-tcl \
20 --disable-readline \
21 --enable-load-extension \
22 LDFLAGS=-ldl \
23 $CONFIGURE_ARGS &&
24 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
25 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 # compile lemon here instead of in lemon
29 if [ -f $src/lemon ]; then
30 rm $src/lemon
31 fi
32 cp $src/tool/lemon.c .
33 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
34 echo -n "Compiling lemon..."
35 gcc -o lemon lemon.c && status
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
44 cp -a $_pkg/usr/bin $fs/usr
45 }