# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=unison
pkgver=2.27.57
pkgrel=1
pkgdesc="Unison is a file-synchronization tool"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.cis.upenn.edu/~bcpierce/unison"
depends=('glibc')
#makedepends=('ocaml' 'lablgtk' 'lablgtk2' 'imagemagick')
makedepends=('ocaml' )
source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/$pkgname-$pkgver.tar.gz \
        $pkgname.desktop)
options=(!makeflags)
install=unison.install

build() {
  cd $startdir/src/$pkgname-$pkgver
  CFLAGS=""
  make clean
  make UISTYLE=text DEBUGGING=false THREADS=true || return 1
  mkdir -p $startdir/pkg/usr/bin 
  install -Dm755 unison $startdir/pkg/usr/bin/unison
}
md5sums=('4ba0a3e4bf4b4ad0c063f86391371f78'
         '2daecba7705455a8e4b769e48b059872')