wok-4.x view sqlite/receipt @ rev 12477

Up openssl 1.1.1n (bump packages curl, git, wget, python), up cherokee 1.2.104 and bdeps (automake, openldap, cyrus-sasl)
author Stanislas Leduc <shann@slitaz.org>
date Sun Apr 02 14:34:44 2023 +0000 (14 months ago)
parents 9a371836dca5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _amalgamationver=3070900
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"
15 WGET_URL="http://mirror.slitaz.org/sources/packages-4.0/s/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
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=$DESTDIR 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
41 mkdir -p $DESTDIR/usr/share/lemon
42 cp -a $src/lemon $DESTDIR/usr/bin
43 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 if [ -f $fs/usr/bin/lemon ]; then
53 rm -f $fs/usr/bin/lemon
54 fi
55 }