1 #Contributor: Andreas Wagner <andreas dot wagner at em dot uni-frankfurt dot de>
6 pkgdesc="Unison is a file-synchronization tool. Beta Version"
9 url="http://www.cis.upenn.edu/~bcpierce/unison"
11 # makedepends=('ocaml' 'lablgtk' 'lablgtk2' 'imagemagick')
12 makedepends=('ocaml' 'lablgtk2' 'imagemagick')
13 source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/unison-$pkgver/unison-$pkgver.tar.gz \
17 install=unison.install
20 cd $startdir/src/unison-$pkgver
24 make UISTYLE=text DEBUGGING=false THREADS=true || return 1
25 mkdir -p $startdir/pkg/usr/bin
26 install -Dm755 unison $startdir/pkg/usr/bin/unison
27 # clean the builddir and rebuild with gtk support
30 # make UISTYLE=gtk DEBUGGING=false THREADS=true || return 1
31 # install -Dm755 unison $startdir/pkg/usr/bin/unison-gtk
32 # clean the builddir and rebuild with gtk2 support
35 make UISTYLE=gtk2 DEBUGGING=false THREADS=true || return 1
36 install -Dm755 unison $startdir/pkg/usr/bin/unison-gtk2
37 # install a .desktop file; create a compliant icon from ico file and install the png
38 install -Dm644 ../unison.desktop $startdir/pkg/usr/share/applications/unison.desktop
39 convert win32rc/U.ico unison.png
40 install -Dm644 unison-1.png $startdir/pkg/usr/share/pixmaps/unison.png
41 # make symlink for .desktop file
42 cd $startdir/pkg//usr/bin
43 ln -s unison-gtk2 unison-x11
46 md5sums=('3281207850cf6f0a17fe73f371893bd3'
47 '2daecba7705455a8e4b769e48b059872')