wok view lemon/receipt @ rev 6574

Up: sqlite, sqlite-dev, lemon to 3.7.3. Made so lemon compiles itself when genpkg only so the patch in compile_rules gets though. Otherwize it will be from sqlite directly without patch and bigger by 8kb or corrupted package with nothing in it since sqlite- will not exist in /lemon.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 08 16:36:42 2010 +0000 (2010-10-08)
parents 6c8824502823
children dc574374a35e
line source
1 # SliTaz package receipt.
3 PACKAGE="lemon"
4 VERSION="3.7.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="The LEMON Parser Generator (from the SQLite project)."
7 MAINTAINER="pankso@slitaz.org"
8 WANTED="sqlite"
9 WEB_SITE="http://www.sqlite.org/"
11 # Rules to configure and make the package.
12 compile_rules()
13 {
14 mkdir -p sqlite-$VERSION && cd sqlite-$VERSION
15 cp $src/tool/lemon.c .
16 cp $src/tool/lempar.c .
17 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
18 echo -n "Compiling lemon..."
19 gcc -o lemon lemon.c && status
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
26 mkdir -p $fs/usr/bin $fs/usr/share/lemon
27 if [ ! -d sqlite-$VERSION ]; then
28 tazwok compile $PACKAGE
29 cp sqlite-$VERSION/lemon $fs/usr/bin
30 cp sqlite-$VERSION/lempar.c $fs/usr/share/lemon
31 elif [ -d sqlite-$VERSION ]; then
32 cp sqlite-$VERSION/lemon $fs/usr/bin
33 cp sqlite-$VERSION/lempar.c $fs/usr/share/lemon
34 fi
35 }