4 pkgdesc="a system for building fast, reusable parsers"
6 url="http://www.reverberate.org/gazelle/"
8 depends=('lua' 'graphviz')
9 optdepends=('imagemagick')
10 makedepends=('lua' 'graphviz' 'asciidoc')
13 source=('0.patch' '1.patch' '2.patch' '3.patch' '4.patch' '5.patch' '6.patch')
14 md5sums=('2a897c783b39de62b8360509c274eb9f' '26c6d76e310dd5d9a9f478df1d154721'
15 'db2400884e01c6c8d92d2d15197decd3' '26078933018ec3e738ac516ebc9025cd'
16 'b9c927c62705b091384cc7fc2816dc04' '83c8bd1cc5ccca66d0bc1ca30d1cb1d9'
17 'a7b691eb4affed62c6782d0e35234cd1')
19 [[ -z "$SRCDEST" ]] && SRCDEST=$startdir
22 _gitroot="git://github.com/haberman/gazelle.git"
27 if [ -d $SRCDEST/$_gitname ] ; then
28 cd $SRCDEST/$_gitname && git pull origin
30 cd $SRCDEST && git clone $_gitroot $_gitname
32 rm -rf $srcdir/$_gitname
33 cp -a $SRCDEST/$_gitname $srcdir/$_gitname
34 cd $srcdir/$_gitname || return 1
36 # update utilities/srlua.c
37 patch -p1 < $srcdir/0.patch
38 # add suport for PATH to utilities/srlua.c
39 patch -p1 < $srcdir/1.patch
40 # add variable declaration to sketches/dump_to_html.lua
41 patch -p1 < $srcdir/2.patch
42 # add support for 64-bit machines
43 patch -p1 < $srcdir/3.patch
44 # solve documentation generation errors
45 patch -p1 < $srcdir/4.patch
46 # do not install as root
47 patch -p1 < $srcdir/5.patch
48 # install documentation
49 patch -p1 < $srcdir/6.patch
54 make install DESTDIR=$pkgdir
55 make installdoc DESTDIR=$pkgdir