Package Details: lemon 1.69-4

Git Clone URL: https://aur.archlinux.org/lemon.git (read-only)
Package Base: lemon
Description: The LALR Parser Generator used in sqlite.
Upstream URL: http://www.hwaci.com/sw/lemon/
Licenses: custom
Submitter: Raedwulf
Maintainer: agalakhov
Last Packager: agalakhov
Votes: 68
Popularity: 0.979670
First Submitted: 2008-12-20 18:45
Last Updated: 2015-09-13 20:47

Dependencies (1)

Required by (2)

Sources (4)

Latest Comments

sakhnik commented on 2014-12-16 20:11

The package really needs update. Would the maintainer please pay attention to the comments?

haawda commented on 2014-11-18 11:35

mkdir -p ${srcdir}/build fails if the directory already exists, e.g. from previous builds. Please use

[ -d ${srcdir}/build ] || mkdir -p ${srcdir}/build

bullno1 commented on 2014-07-06 05:14

PKGBUILD without package() is deprecated, please update:

pkgname=lemon
pkgrel=3
pkgver=1.69
pkgdesc="The LEMON LALR Parser Generator used in sqlite."
arch=('i686' 'x86_64')
url="http://www.hwaci.com/sw/lemon/"
license=('custom')
depends=()
source=('lemon.c::http://www.sqlite.org/src/raw/tool/lemon.c?name=680980c7935bfa1edec20c804c9e5ba4b1dd96f5'
'lempar.c::http://www.sqlite.org/src/raw/tool/lempar.c?name=01ca97f87610d1dac6d8cd96ab109ab1130e76dc'
lemon_share.diff)

build() {
mkdir -p ${srcdir}/build
cd build
cp ${srcdir}/lemon.c ${srcdir}/lempar.c .
patch -Np0 -i ${srcdir}/lemon_share.diff
make lemon
}

package() {
cd ${srcdir}/build
install -Dm755 lemon $pkgdir/usr/bin/lemon
install -Dm644 lempar.c $pkgdir/usr/share/lemon/lempar.c
}

md5sums=('1e13360f66009275f2e78816911a1ed7'
'fbf6255b88d54cf284c833da0d9ee5d2'
'20eedecfc5dce37ae6ef5055ac3f8a33')

yorickpeterse commented on 2013-04-16 14:30

PKGBUILD is still broken, the following one worked for me:

pkgname=lemon
pkgrel=3
pkgver=1.69
pkgdesc="The LEMON LALR Parser Generator used in sqlite."
arch=('i686' 'x86_64')
url="http://www.hwaci.com/sw/lemon/"
license=('custom')
depends=()
source=('lemon.c::http://www.sqlite.org/src/raw/tool/lemon.c?name=680980c7935bfa1edec20c804c9e5ba4b1dd96f5'
'lempar.c::http://www.sqlite.org/src/raw/tool/lempar.c?name=01ca97f87610d1dac6d8cd96ab109ab1130e76dc')
md5sums=('1e13360f66009275f2e78816911a1ed7'
'fbf6255b88d54cf284c833da0d9ee5d2')

build() {
make lemon
}

package() {
install -Dm755 lemon $pkgdir/usr/bin/lemon
install -Dm644 lempar.c $pkgdir/usr/share/lemon/lempar.c
}

Raedwulf commented on 2013-01-30 08:56

Updated the package, thanks kraileth + baskerville!

Raedwulf commented on 2013-01-30 08:54

Updated the package!

baskerville commented on 2012-12-13 15:52

Or preferably this PKGBUILD:
https://github.com/baskerville/PKGBUILDs/blob/master/lemon/PKGBUILD

kraileth commented on 2012-08-29 10:22

The last PKGBUILD proposed in the comments is broken again. In case anybody needs this, too, here's a working one:

pkgname=lemon
pkgrel=3
pkgver=1.69
pkgdesc="The LEMON LALR Parser Generator used in sqlite."
arch=('i686' 'x86_64')
url="http://www.hwaci.com/sw/lemon/"
license=('custom')
depends=()
source=('lemon.c::http://www.sqlite.org/src/raw/tool/lemon.c?name=680980c7935bfa1edec20c804c9e5ba4b1dd96f5'
'lempar.c::http://www.sqlite.org/src/raw/tool/lempar.c?name=01ca97f87610d1dac6d8cd96ab109ab1130e76dc')
md5sums=('1e13360f66009275f2e78816911a1ed7'
'fbf6255b88d54cf284c833da0d9ee5d2')

build() {
make lemon
install -Dm755 lemon $startdir/pkg/usr/bin/lemon
install -Dm644 lempar.c $startdir/pkg/usr/share/lemon/lempar.c
}

Raedwulf commented on 2012-04-25 19:38

Thanks sammasati for the new links!

Raedwulf commented on 2012-04-25 19:36

Thanks sammasati!

Anonymous comment on 2012-02-24 18:40

A better PKGBUILD:

pkgname=lemon
pkgrel=1
pkgver=1.69
pkgdesc="The LEMON LALR Parser Generator used in sqlite."
arch=('i686' 'x86_64')
url="http://www.hwaci.com/sw/lemon/"
license=('custom')
depends=()
source=('https://svn.apache.org/repos/asf/incubator/lucy/trunk/lemon/lemon.c'
'https://svn.apache.org/repos/asf/incubator/lucy/trunk/lemon/lempar.c')
md5sums=('6a50e55fd44eb13a77ca04675273d3e9'
'fbf6255b88d54cf284c833da0d9ee5d2')

build() {
make lemon
install -Dm755 lemon $startdir/pkg/usr/bin/lemon
install -Dm644 lempar.c $startdir/pkg/usr/share/lemon/lempar.c
}

kyak commented on 2012-02-08 02:38

Sorry, but this package is just ugly.
And thanks @sammasati

jwhendy commented on 2011-12-24 22:55

Still not working for me. Even with changing the wget targets to issues.apache.org, I still get the same patch failures as mentioned by @crigon.

xyproto commented on 2011-12-09 22:24

Yes, downloading lemon.c and lempar.c from https://issues.apache.org/jira/secure/attachment/12489616/ instead works. Please update.

dotmagic commented on 2011-11-24 14:16

@Raedwulf: Can you apply the patch here?: https://aur.archlinux.org/packages.php?ID=54174

Anonymous comment on 2011-11-16 04:24

Hmm...links to lemon.c and lempar.c are not workable anymore.
I found another links:
https://issues.apache.org/jira/secure/attachment/12489616/lemon.c
https://issues.apache.org/jira/secure/attachment/12489617/lempar.c

mst commented on 2011-10-30 19:37

2011-10-30 23:34:24 (274 MB/s) - «lempar.c» saved [2312/2312]

patching file lemon.c
Hunk #1 FAILED at 3086.
1 out of 1 hunk FAILED -- saving rejects to file lemon.c.rej
patching file lemon.c
Hunk #1 FAILED at 3097.
1 out of 1 hunk FAILED -- saving rejects to file lemon.c.rej
patching file lemon.c
Hunk #1 FAILED at 3097.
1 out of 1 hunk FAILED -- saving rejects to file lemon.c.rej

abique commented on 2011-10-19 23:22

This is ugly, you should not download files in the build function!

You have to list all the files in sources!