wok-current annotate sqlite/receipt @ rev 19170
Fix typo in $MAINTAINER
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jun 02 11:40:11 2016 +0300 (2016-06-02) |
parents | 5636549f3f3d |
children | 294c02abfd9f |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="sqlite" |
devl547@18268 | 4 _realver=3081101 |
slaxemulator@13677 | 5 VERSION="${_realver:0:1}.${_realver:2:1}.${_realver:3:2}.${_realver:6:6}" |
pankso@205 | 6 CATEGORY="office" |
pankso@6 | 7 SHORT_DESC="Small SQL database engine." |
pankso@6 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 9 LICENSE="PublicDomain" |
slaxemulator@12422 | 10 TARBALL="$PACKAGE-src-${_realver}.zip" |
pascal@15379 | 11 WEB_SITE="http://www.sqlite.org/" |
devl547@17785 | 12 WGET_URL="http://www.sqlite.org/2015/$TARBALL" |
pascal@18930 | 13 EXTRA_SOURCE_FILES="mysql2sqlite.sh" |
pankso@16042 | 14 HOST_ARCH="i486 arm" |
pascal@15379 | 15 |
erjo@8741 | 16 DEPENDS="libsqlite" |
pascal@18650 | 17 BUILD_DEPENDS="tcl-dev" |
pankso@6 | 18 |
pankso@6 | 19 # Rules to configure and make the package. |
pankso@6 | 20 compile_rules() |
pankso@6 | 21 { |
pascal@19120 | 22 case "$ARCH" in |
pascal@19120 | 23 arm*) ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib" ;; |
pascal@19120 | 24 esac |
pascal@18930 | 25 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] || |
pascal@18930 | 26 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \ |
pascal@18930 | 27 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh |
slaxemulator@11158 | 28 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" |
pankso@612 | 29 ./configure \ |
pankso@612 | 30 --prefix=/usr \ |
pankso@2047 | 31 --disable-readline \ |
sygne@1984 | 32 --enable-load-extension \ |
pascal@19118 | 33 LDFLAGS="$LDFLAGS -ldl" \ |
pascal@19120 | 34 $ARCH_ARGS \ |
pankso@3156 | 35 $CONFIGURE_ARGS && |
slaxemulator@5351 | 36 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool && |
slaxemulator@5351 | 37 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && |
pankso@3156 | 38 make && |
slaxemulator@10108 | 39 make DESTDIR=$DESTDIR install |
slaxemulator@6577 | 40 # compile lemon here instead of in lemon |
slaxemulator@6577 | 41 if [ -f $src/lemon ]; then |
slaxemulator@6577 | 42 rm $src/lemon |
slaxemulator@6577 | 43 fi |
slaxemulator@6577 | 44 cp $src/tool/lemon.c . |
slaxemulator@6577 | 45 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c |
slaxemulator@6577 | 46 echo -n "Compiling lemon..." |
slaxemulator@6577 | 47 gcc -o lemon lemon.c && status |
slaxemulator@10108 | 48 mkdir -p $DESTDIR/usr/share/lemon |
slaxemulator@10108 | 49 cp -a $src/lemon $DESTDIR/usr/bin |
slaxemulator@10108 | 50 cp -a $src/lempar.c $DESTDIR/usr/share/lemon |
pankso@6 | 51 } |
pankso@6 | 52 |
pankso@6 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 54 genpkg_rules() |
pankso@6 | 55 { |
pascal@18930 | 56 mkdir -p $fs/usr/bin |
erjo@8741 | 57 |
slaxemulator@11158 | 58 cp -a $install/usr/bin $fs/usr |
pascal@18930 | 59 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin |
pascal@18930 | 60 chmod +x $fs/usr/bin/mysql2sqlite.sh |
gokhlayeh@11392 | 61 if [ -f $fs/usr/bin/lemon ]; then |
gokhlayeh@11392 | 62 rm -f $fs/usr/bin/lemon |
gokhlayeh@11392 | 63 fi |
pankso@6 | 64 } |