# $Id: PKGBUILD 57695 2009-11-01 15:05:28Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=unison
pkgver=2.32.52
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')
source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('0701f095c1721776a0454b94607eda48')
options=(!makeflags)

build() {
  cd "$srcdir/$pkgname-$pkgver"

  CFLAGS=""
  make clean
  make UISTYLE=text DEBUGGING=false THREADS=true
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  mkdir -p $pkgdir/usr/bin 
  install -Dm755 unison $pkgdir/usr/bin/unison
}
