# Template file for 'unison' pkgname=unison version=2.53.4 revision=2 hostmakedepends="ocaml" short_desc="File-synchronization tool" maintainer="Andrew J. Hesford " license="GPL-3.0-or-later" homepage="https://www.cis.upenn.edu/~bcpierce/unison/" distfiles="https://github.com/bcpierce00/unison/archive/v${version}.tar.gz" checksum=d19e4293013581dbc4d149aef89b34c76221efcbd873c7aa5193de489addb85a nocross="OCaml does not cross compile" do_build() { command -v ocamlc.opt >/dev/null && NATIVE=true || NATIVE=false CFLAGS= make ${makejobs} DEBUGGING=false THREADS=true NATIVE=$native CFLAGS= make ${makejobs} -C man } do_check() { mkdir -p ./tmp HOME="${PWD}/tmp" TMPDIR="${PWD}/tmp" ./src/unison -selftest } do_install() { vbin src/unison vbin src/unison-fsmonitor vman man/unison.1 }