wok view sqlite/receipt @ rev 19011
busybox/fbvnc: wheelmouse support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 28 23:15:26 2016 +0200 (2016-03-28) |
parents | 2b9e103a4c4d |
children | 77a9ec044381 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3081101
5 VERSION="${_realver:0:1}.${_realver:2:1}.${_realver:3:2}.${_realver:6:6}"
6 CATEGORY="office"
7 SHORT_DESC="Small SQL database engine."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="PublicDomain"
10 TARBALL="$PACKAGE-src-${_realver}.zip"
11 WEB_SITE="http://www.sqlite.org/"
12 WGET_URL="http://www.sqlite.org/2015/$TARBALL"
13 EXTRA_SOURCE_FILES="mysql2sqlite.sh"
14 HOST_ARCH="i486 arm"
16 DEPENDS="libsqlite"
17 BUILD_DEPENDS="tcl-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] ||
23 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \
24 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh
25 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
26 ./configure \
27 --prefix=/usr \
28 --disable-readline \
29 --enable-load-extension \
30 LDFLAGS=-ldl \
31 $CONFIGURE_ARGS &&
32 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
33 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 # compile lemon here instead of in lemon
37 if [ -f $src/lemon ]; then
38 rm $src/lemon
39 fi
40 cp $src/tool/lemon.c .
41 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
42 echo -n "Compiling lemon..."
43 gcc -o lemon lemon.c && status
44 mkdir -p $DESTDIR/usr/share/lemon
45 cp -a $src/lemon $DESTDIR/usr/bin
46 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
54 cp -a $install/usr/bin $fs/usr
55 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin
56 chmod +x $fs/usr/bin/mysql2sqlite.sh
57 if [ -f $fs/usr/bin/lemon ]; then
58 rm -f $fs/usr/bin/lemon
59 fi
60 }