# Maintainer: Mort Yao # Contributor: Serge Zirukin # Contributor: Sergei Lebedev # Contributor: Guillem Rieu # Contributor: Sergey Plaksin # Contributor: Nicolas Pouillard pkgname=ocaml-menhir pkgver=20190613 pkgrel=1 pkgdesc="Menhir is a LR(1) parser generator for the OCaml." arch=("i686" "x86_64") url="http://cristal.inria.fr/~fpottier/menhir/" license=('GPL' 'QPL') depends=('ocaml>=4.02') makedepends=('ocamlbuild' 'ocaml-findlib') options=(!strip !makeflags) source=("https://gitlab.inria.fr/fpottier/menhir/-/archive/$pkgver/menhir-$pkgver.tar.gz") md5sums=('a0262ee35b1b07bcf0cafd980d39cbef') build() { cd "$srcdir/${pkgname/ocaml-/}-$pkgver" make PREFIX="/usr" all } package() { cd "$srcdir/${pkgname/ocaml-/}-$pkgver" export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" install -dm 755 "$OCAMLFIND_DESTDIR" make PREFIX="$pkgdir/usr" install }