# Maintainer: Jakob Gahde # Contributor: Aaron Chen # Contributor: Serge Zirukin # Contributor: Sergei Lebedev # Contributor: Nicolas Pouillard # Contributor: Sylvester Johansson pkgname=ocaml-sexplib pkgver=0.11.0 pkgrel=1 epoch=1 pkgdesc="Library for serializing OCaml values to and from S-expressions" arch=('i686' 'x86_64') url="https://github.com/janestreet/sexplib" license=('Apache') depends=('ocaml' 'ocaml-parsexp' 'ocaml-sexplib0' 'ocaml-num') makedepends=('dune') options=('!strip') source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/sexplib-v${pkgver}.tar.gz") md5sums=('1d53d945914b6b9a380dc8923f19e9ae') build() { cd "${srcdir}/sexplib-v${pkgver}" jbuilder build } package(){ cd "${srcdir}/sexplib-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/" }