wok view sqlite/receipt @ rev 8623

Fix: libarchive doesn't need acl hack anymore: acl files are now installed to the right location.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Feb 14 20:54:26 2011 +0100 (2011-02-14)
parents a7c1367aeeaf
children 38fade343837
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 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 }