wok-current annotate sqlite/receipt @ rev 8741
sqlite: split package
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Feb 19 21:49:37 2011 +0100 (2011-02-19) |
parents | b50123d7512e |
children | 07adb7cbd0c8 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="sqlite" |
slaxemulator@8327 | 4 _amalgamationver=3070500 |
slaxemulator@7610 | 5 _amalgamationver2=${_amalgamationver/00/} |
slaxemulator@7610 | 6 VERSION="${_amalgamationver2//0/.}" |
pankso@205 | 7 CATEGORY="office" |
pankso@6 | 8 SHORT_DESC="Small SQL database engine." |
pankso@6 | 9 MAINTAINER="pankso@slitaz.org" |
slaxemulator@7610 | 10 TARBALL="$PACKAGE-src-${_amalgamationver}.zip" |
erjo@8741 | 11 DEPENDS="libsqlite" |
slaxemulator@5351 | 12 BUILD_DEPENDS="tcl" |
pankso@6 | 13 WEB_SITE="http://www.sqlite.org/" |
pankso@6 | 14 WGET_URL="http://www.sqlite.org/$TARBALL" |
pankso@6 | 15 |
pankso@6 | 16 # Rules to configure and make the package. |
pankso@6 | 17 compile_rules() |
pankso@6 | 18 { |
slaxemulator@7610 | 19 src=$WOK/$PACKAGE/$PACKAGE-src-${_amalgamationver} |
pankso@6 | 20 cd $src |
erjo@8741 | 21 |
pankso@612 | 22 ./configure \ |
pankso@612 | 23 --prefix=/usr \ |
pankso@612 | 24 --disable-tcl \ |
pankso@2047 | 25 --disable-readline \ |
sygne@1984 | 26 --enable-load-extension \ |
sygne@1984 | 27 LDFLAGS=-ldl \ |
pankso@3156 | 28 $CONFIGURE_ARGS && |
slaxemulator@5351 | 29 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool && |
slaxemulator@5351 | 30 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && |
pankso@3156 | 31 make && |
pankso@6 | 32 make DESTDIR=$PWD/_pkg install |
slaxemulator@6577 | 33 # compile lemon here instead of in lemon |
slaxemulator@6577 | 34 if [ -f $src/lemon ]; then |
slaxemulator@6577 | 35 rm $src/lemon |
slaxemulator@6577 | 36 fi |
slaxemulator@6577 | 37 cp $src/tool/lemon.c . |
slaxemulator@6577 | 38 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c |
slaxemulator@6577 | 39 echo -n "Compiling lemon..." |
slaxemulator@6577 | 40 gcc -o lemon lemon.c && status |
slaxemulator@6577 | 41 |
pankso@6 | 42 } |
pankso@6 | 43 |
pankso@6 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 45 genpkg_rules() |
pankso@6 | 46 { |
slaxemulator@7610 | 47 _pkg=$WOK/$PACKAGE/$PACKAGE-src-${_amalgamationver}/_pkg |
erjo@8741 | 48 mkdir -p $fs/usr |
erjo@8741 | 49 |
pankso@6 | 50 cp -a $_pkg/usr/bin $fs/usr |
pankso@6 | 51 } |