wok-current view sqlite/receipt @ rev 8081
Bumped mesa.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Jan 21 21:23:11 2011 +0000 (2011-01-21) |
parents | dc574374a35e |
children | b50123d7512e |
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _amalgamationver=3070400
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 BUILD_DEPENDS="tcl"
12 WEB_SITE="http://www.sqlite.org/"
13 WGET_URL="http://www.sqlite.org/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 src=$WOK/$PACKAGE/$PACKAGE-src-${_amalgamationver}
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --disable-tcl \
23 --disable-readline \
24 --enable-load-extension \
25 LDFLAGS=-ldl \
26 $CONFIGURE_ARGS &&
27 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
28 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 # compile lemon here instead of in lemon
32 if [ -f $src/lemon ]; then
33 rm $src/lemon
34 fi
35 cp $src/tool/lemon.c .
36 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
37 echo -n "Compiling lemon..."
38 gcc -o lemon lemon.c && status
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 _pkg=$WOK/$PACKAGE/$PACKAGE-src-${_amalgamationver}/_pkg
46 mkdir -p $fs/usr/lib
47 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
48 cp -a $_pkg/usr/bin $fs/usr
49 }