Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

menhir-20111019 pkgbuild

By: a guest on Nov 1st, 2011  |  syntax: Bash  |  size: 0.74 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.