diff --git a/srcpkgs/unison/template b/srcpkgs/unison/template index 51991a69dfc..1285e76cd11 100644 --- a/srcpkgs/unison/template +++ b/srcpkgs/unison/template @@ -1,6 +1,6 @@ # Template file for 'unison' pkgname=unison -version=2.53.5 +version=2.53.7 revision=1 hostmakedepends="ocaml" short_desc="File-synchronization tool" @@ -8,12 +8,20 @@ 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=330418ad130d93d0e13da7e7e30f9b829bd7c0e859355114bd4644c35fe08d23 +checksum=a259537cef465c4806d6c1638c382620db2dd395ae42a0dd2efa3ba92712bed5 nocross="OCaml does not cross compile" +nostrip="$(vopt_if native '' yes)" + +build_options="native" +desc_option_native="Use ocamlopt for native compilation" + +case "$XBPS_TARGET_MACHINE" in + x86_64*) build_options_default="native" ;; +esac do_build() { - command -v ocamlc.opt >/dev/null && NATIVE=true || NATIVE=false - CFLAGS= make ${makejobs} DEBUGGING=false THREADS=true NATIVE=$native + local _native="$(vopt_if native true)" + CFLAGS= make ${makejobs} DEBUGGING=false THREADS=true NATIVE="${_native}" CFLAGS= make ${makejobs} -C man }