summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89a4462ea3808226af9271c6e4c6f88a1ac40d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=ocaml-core_bench
pkgver=0.14.0
pkgrel=1
epoch=1
pkgdesc="A micro-benchmarking library for ocaml"
arch=('i686' 'x86_64')
url="https://github.com/janestreet/core_bench"
license=('Apache')
depends=('ocaml' 'ocaml-core' 'ocaml-core_extended' 'ocaml-ppx_jane' 'ocaml-textutils' 'ocaml-migrate-parsetree' 'ocaml-ppxlib' 'ocaml-re')
makedepends=('dune')
options=('!strip')
source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/core_bench-v${pkgver}.tar.gz")
md5sums=('96c9241f978acbc3a6817b20b281996f')

build() {
  cd "${srcdir}/core_bench-v${pkgver}"

  jbuilder build
}

package() {
  cd "${srcdir}/core_bench-v${pkgver}"

  install -dm755 "${pkgdir}$(ocamlfind -printconf destdir)" "${pkgdir}/usr/share"
  jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind -printconf destdir)"
  mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}