wok-4.x annotate lemon/receipt @ rev 4525

firefox-dev: add npupp.h
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 29 17:44:50 2009 +0100 (2009-11-29)
parents b4180fb6239f
children 5144a898a64e
rev   line source
pankso@2823 1 # SliTaz package receipt.
pankso@2823 2
pankso@2823 3 PACKAGE="lemon"
pankso@3633 4 VERSION="3.6.16"
pankso@2823 5 CATEGORY="system-tools"
pankso@2823 6 SHORT_DESC="The LEMON Parser Generator (from the SQLite project)."
pankso@2823 7 MAINTAINER="pankso@slitaz.org"
pankso@2823 8 WANTED="sqlite"
pankso@2823 9 WEB_SITE="http://www.sqlite.org/"
pankso@2823 10
pankso@2823 11 # Rules to configure and make the package.
pankso@2823 12 compile_rules()
pankso@2823 13 {
pankso@2823 14 mkdir -p lemon-$VERSION && cd lemon-$VERSION
pankso@2823 15 cp $src/tool/lemon.c .
pankso@2823 16 cp $src/tool/lempar.c .
pankso@2823 17 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
pankso@2823 18 echo -n "Compiling lemon..."
pankso@2823 19 gcc -o lemon lemon.c && status
pankso@2823 20 }
pankso@2823 21
pankso@2823 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2823 23 genpkg_rules()
pankso@2823 24 {
pankso@2823 25 mkdir -p $fs/usr/bin $fs/usr/share/lemon
pankso@2823 26 cp lemon-$VERSION/lemon $fs/usr/bin
pankso@2823 27 cp lemon-$VERSION/lempar.c $fs/usr/share/lemon
pankso@2823 28 }