38 lines
990 B
Bash
38 lines
990 B
Bash
# Template file for 'unison'
|
|
pkgname=unison
|
|
version=2.53.7
|
|
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=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() {
|
|
local _native="$(vopt_if native true)"
|
|
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
|
|
}
|