# Maintainer: Jürgen Hötzel <juergen@hoetzel.info>

pkgname=ocamlbuild
pkgver=0.14.0
pkgrel=10
pkgdesc='Build tool, that has built-in rules for building OCaml library and programs'
arch=('x86_64')
license=('GPL2')
url='https://github.com/ocaml/ocamlbuild/releases'
depends=('ocaml>=4.12.0')
options=('!makeflags')
source=($pkgname-$pkgver.tar.gz::"https://github.com/ocaml/${pkgname}/archive/$pkgver.tar.gz")
sha256sums=('87b29ce96958096c0a1a8eeafeb6268077b2d11e1bf2b3de0f5ebc9cf8d42e78')

build() {
  cd $pkgname-$pkgver
  make configure PREFIX="/usr" MANDIR="/usr/share/man"
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
