dune (1075B)
1 {% extends "genlinks" %} 2 {% block template_deps -%} 3 {{ super() -}} 4 #+{{pkg_install_name("busybox-diffutils")}} 5 #+{{pkg_install_name("musl-cross-make")}} 6 #+{{pkg_install_name("ocaml:dynlink")}} 7 #+{{pkg_install_name("dune")}} 8 {% endblock template_deps %} 9 {%- block configure %} 10 export DUNE_CACHE=disabled 11 {{ super() }} 12 {% endblock configure %} 13 {%- block build %} 14 dune build --no-buffer --verbose {% block dune_build_args %}--release{% endblock %} -j "${JOBS:-1}" 15 16 {% endblock build %} 17 {%- block install %} 18 dune install \ 19 --destdir="$pthbs_destdir" \ 20 --prefix="$prefix" \ 21 --libdir="$prefix/library.ocaml" \ 22 --bindir="$prefix/command" \ 23 --sbindir="$prefix/command" \ 24 --etcdir="$prefix/config/etc" \ 25 --mandir="$prefix/man" \ 26 --docdir="$prefix/doc/{{shortname}}" \ 27 --datadir="$prefix/data" \ 28 {% block dune_install_args %}{% endblock %} 29 30 {% endblock install %} 31 {% block check -%} 32 dune runtest --build-dir=.testenv --no-buffer --verbose 33 34 {% endblock check %} 35 {% block genlinks_rules %} 36 {{ super() -}} 37 $2 == "library.ocaml" { link($0); next } 38 {% endblock genlinks_rules -%}