# Maintainer: Jakob Gahde pkgname=ocaml-ppx_custom_printf pkgver=0.11.0 pkgrel=1 epoch=1 pkgdesc="Printf-style format-strings for user-defined string conversion" arch=('i686' 'x86_64') url="https://github.com/janestreet/ppx_custom_printf" license=('Apache') depends=('ocaml' 'ocaml-base' 'ocaml-ppx_sexp_conv' 'ocaml-migrate-parsetree' 'ocaml-ppxlib') makedepends=('dune') options=('!strip' '!emptydirs') source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/ppx_custom_printf-v${pkgver}.tar.gz") md5sums=('b7cf49585319576dd77f6ddd6db95b21') build() { cd "${srcdir}/ppx_custom_printf-v${pkgver}" jbuilder build } package() { cd "${srcdir}/ppx_custom_printf-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/" }