mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
52 lines
1.9 KiB
Text
52 lines
1.9 KiB
Text
# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
|
|
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
|
|
pkgname=unison
|
|
# Note: unison breaks compatibility between minor (major.minor) versions.
|
|
pkgver=2.51.3
|
|
_majorver=${pkgver%.*} # x.y
|
|
pkgrel=1
|
|
pkgdesc="Efficient file-synchronization tool"
|
|
url="https://www.cis.upenn.edu/~bcpierce/unison/"
|
|
# mips64 and riscv64 blocked by ocaml
|
|
arch="all !mips64 !riscv64"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="ocaml linux-headers"
|
|
checkdepends="coreutils"
|
|
source="unison-$pkgver.tar.gz::https://github.com/bcpierce00/unison/archive/v$pkgver.tar.gz
|
|
duplicate-hash-function.patch
|
|
fix-inotify-check.patch"
|
|
|
|
build() {
|
|
# ocamlopt is a front-end for gcc which will create optimized ocaml
|
|
# binaries. It will call gcc, but it hasn't implemented all gcc options.
|
|
# -ccopt is the way to pass arbitrary options.
|
|
local _cflags=''
|
|
local i; for i in $CFLAGS; do
|
|
_cflags="$_cflags -ccopt $i"
|
|
done
|
|
export CFLAGS="$_cflags"
|
|
|
|
make -j1 UISTYLE=text DEBUGGING=false THREADS=true
|
|
cp src/unison unison-text
|
|
cp src/unison-fsmonitor unison-fsmonitor
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
install -m 755 -D unison-text \
|
|
"$pkgdir"/usr/bin/unison-text-$_majorver
|
|
install -m 755 -D unison-fsmonitor \
|
|
"$pkgdir"/usr/bin/unison-fsmonitor-$_majorver
|
|
|
|
cd "$pkgdir"/usr/bin
|
|
ln -s unison-text-$_majorver unison-text
|
|
ln -s unison-text unison
|
|
}
|
|
|
|
sha512sums="202bc592cf18d3ac76d7e29ec71add5d6e33a96b4b885e0e2add9a5a621db2290184f268c70e4f05e4884d6cdfed09f6fcd3dde85681c39628a10ea552917c8f unison-2.51.3.tar.gz
|
|
71d8ca5fd1855779abfa4aaeb38377ef4bf8dcf1612b983b82166d0bd2c5e9f0383dda10798a59bf4ebc63d777b5b4cc80db74376007c55648a53057f7d25d3e duplicate-hash-function.patch
|
|
8b6de1c1e78e6350aa294e8ea741762ad42dc5d0adc50c8ee456691b58374f8594fcb06937124eadbe0b5b28495b6642611d2ecec7e94536ff9ca411f5663f61 fix-inotify-check.patch"
|