# Template file for 'ocaml-findlib' pkgname=ocaml-findlib version=1.9.6 revision=1 build_style=configure configure_args="-config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man" makedepends="ocaml ocamlbuild" short_desc="OCaml package manager" maintainer="Orphaned " license="MIT" homepage="http://projects.camlcity.org/projects/findlib.html" distfiles="http://download.camlcity.org/download/findlib-${version}.tar.gz" checksum=2df996279ae16b606db5ff5879f93dbfade0898db9f1a3e82f7f845faa2930a2 nocross=yes nopie=yes disable_parallel_build=yes case "$XBPS_TARGET_MACHINE" in # native code platforms x86_64*|aarch64*|riscv64*) make_build_args="all opt";; *) nostrip=yes # breaks bytecode! make_build_target="all";; esac do_install() { make prefix="$DESTDIR" install if [ -f src/findlib/ocamlfind_opt ]; then vbin src/findlib/ocamlfind_opt fi vlicense LICENSE rm -rf ${DESTDIR}/usr/lib/ocaml/ocamlbuild }