void-packages/srcpkgs/unison/template

30 lines
813 B
Bash

# Template file for 'unison'
pkgname=unison
version=2.53.5
revision=1
hostmakedepends="ocaml"
short_desc="File-synchronization tool"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
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
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
}