# $Id: PKGBUILD 221348 2014-09-09 16:53:03Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=camlp4
pkgver=4.02.0+1
pkgrel=1
pkgdesc="Caml Preprocessor and Pretty-Printer"
arch=('i686' 'x86_64')
license=('GPL2')
url="https://github.com/ocaml/camlp4/releases"
depends=('ocaml')
source=(https://github.com/ocaml/camlp4/archive/${pkgver}.tar.gz)
options=('!makeflags' '!emptydirs' 'staticlibs')

build() {
  cd "${srcdir}/${pkgname}-4.02.0-1"
  ./configure
  make all
}

package() {
  cd "${srcdir}/${pkgbase}-4.02.0-1"
  make BINDIR="${pkgdir}"/usr/bin LIBDIR="${pkgdir}"/usr/lib/ocaml install
}
md5sums=('958e994b17ff803ab3a065db1005489e')
