summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2674de4efc1fbfea3e7bc078ad9ac57b40165f9e (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
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=ocaml-configurator
pkgver=0.11.0
pkgrel=1
pkgdesc="Helper library for gathering system configuration"
arch=('x86_64')
url='https://github.com/janestreet/configurator'
license=('Apache')
depends=('ocaml' 'ocaml-base' 'ocaml-stdio')
makedepends=('dune')
options=('!strip')
source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/configurator-v${pkgver}.tar.gz")
md5sums=('55511f3ea8e3d66439910b3324701218')

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

  jbuilder build
}


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

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