1 # Maintainer: Pierre Bourdon <delroth@gmail.com>
6 pkgdesc="A parser generator using the PEG approach."
8 url="http://aurochs.fr/"
11 makedepends=(git ocaml)
14 _gitroot="git://github.com/berke/aurochs.git"
19 msg "Connecting to GIT server..."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
36 # Create the destination directory as aurochs does not do it
37 mkdir -p "$pkgdir/usr/bin" || return 1
39 # Little hack as Aurochs Makefile always install in `ocamlc -where` :
40 OUROCAMLLIB="$pkgdir$(ocamlc -where)"
41 OCAMLLIB="$OUROCAMLLIB" make BINPREFIX="$pkgdir/usr/bin" install