aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unison/APKBUILD
blob: 1039b742d5c8837073dd43d4b9c43f7272b8dac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Jean-Louis Fuchs <ganwell@fangorn.ch>
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=unison
pkgver=2.48.4
pkgrel=2
pkgdesc="Unison - efficient file-synchronization tool"
url="https://www.cis.upenn.edu/~bcpierce/unison/"
# ocaml is not built for x86, armhf
# lablgtk is not built for aarch64
arch="all !x86 !armhf !aarch64"
license="GPL"
depends=""
makedepends="ocaml lablgtk-dev linux-headers emacs-nox"
install=""
subpackages="$pkgname-doc"
source="http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/unison-$pkgver.tar.gz
	http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/unison-$pkgver-manual.html
	fix_inotify_check.patch
	bytearray_stubs_c.patch"
builddir="$srcdir/src"

build() {
	cd "$builddir"
	# ocamlopt doesn't know -Os nor -fomit-frame-pointer
	export CFLAGS="-ccopt -Os -ccopt -fomit-frame-pointer"
	for ui in text gtk2; do
		make -j1 clean
		make -j1 mkProjectInfo 
		make -j1 UISTYLE=$ui DEBUGGING=false THREADS=true || return 1
		mv unison unison-$ui
	done
}

doc() {
	pkgdesc="Unison - efficient file-synchronization tool (documentation)"
	_docdir="$subpkgdir"/usr/share/doc/$pkgname/
	mkdir -p "$_docdir"
	cd "$srcdir"
	cp unison-$pkgver-manual.html "$_docdir"
}

package() {
	cd "$builddir"
	install -d "${pkgdir}"/usr/bin
	install -m755 unison-* "${pkgdir}"/usr/bin
	cd "${pkgdir}"/usr/bin
	ln -s unison-text unison
	ln -s unison unison-${pkgver%.*}
}

md5sums="5334b78c7e68169df7de95f4c6c4b60f  unison-2.48.4.tar.gz
3dc5de6c0609ae2e3019d22f76345b91  unison-2.48.4-manual.html
2e119ce09b903763fb859d24d573f4f1  bytearray_stubs_c.patch
c40a53099c98f7a82eaad52b7e5d0df2  fix_inotify_check.patch"
sha256sums="30aa53cd671d673580104f04be3cf81ac1e20a2e8baaf7274498739d59e99de8  unison-2.48.4.tar.gz
2b5674e2fd7751148784a716ce5a03f8cd0a321c8a3bd4343832ed9b83d2d404  unison-2.48.4-manual.html
e475883bb55280f88cdd49688c1609a02d58eccbee9030546becc793b0645d6f  bytearray_stubs_c.patch
ef0371e70c94250ca04e80a5fddf61f3edab1c6ec0854e9bf5b2edd6dd18e986  fix_inotify_check.patch"
sha512sums="c8e7bd2b14edae31e7d08154cdc2dce8173546b6163b9e5f4f2b1c8255792a7645d8449da88d7acfcbf498746481d24d0a3936978969920530a15a16bcbc6024  unison-2.48.4.tar.gz
b995712cda51d612bd81c89589d872099b3b9c90f7413268b24ab399a1eff7690200980514a834ee3d12bd3c89ef61bb8a29b3970c01433e0c4671d363a96b68  unison-2.48.4-manual.html
ab79e6c3c2788c4333b0108d96a668c426d206cb11ddc5a56a9255873dff4cc88c7bd9303a027467937f95e512b9d7593f8e22d51999b768e8ee90b60f89e1e4  bytearray_stubs_c.patch
27eaf4f347dc827dc14b338ef2be40d25507c6c9d65ecdc8f811ebe994f6e23577ad85fcc86b63d148b57844b24e6034061c869b641fbd3173532a26e0828803  fix_inotify_check.patch"