SHARE
TWEET

menhir-20111019 pkgbuild

a guest Nov 1st, 2011 36 Never
  1. pkgname=menhir
  2. pkgver=20111019
  3. pkgrel=1
  4. pkgdesc="Menhir is a LR(1) parser generator for the Objective Caml programming language."
  5. arch=("i686" "x86_64")
  6. url="http://cristal.inria.fr/~fpottier/menhir/"
  7. license=('GPL' 'QPL')
  8. depends=('ocaml>=3.09')
  9. makedepends=('ocaml-findlib')
  10. options=(!strip !makeflags)
  11. source=(http://cristal.inria.fr/~fpottier/menhir/$pkgname-$pkgver.tar.gz)
  12. md5sums=('03ea68c0148142c801d3c0fd3b96ba51')
  13.  
  14. OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  15.  
  16. build() {
  17.   cd "$srcdir/$pkgname-$pkgver"
  18.   mkdir -p "$OCAMLFIND_DESTDIR"
  19.   make PREFIX="/usr" all || return 1
  20. }
  21.  
  22. package() {
  23.   cd "$srcdir/$pkgname-$pkgver"
  24.   env OCAMLFIND_DESTDIR="$OCAMLFIND_DESTDIR" \
  25.     make PREFIX="$pkgdir/usr" install
  26. }
  27.  
RAW Paste Data
Top