# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Contributor: Ali H. Caliskan <ali.h.caliskan AT gmail DOT com>
# Contributor: Arjan Timmerman <[email protected]>
# Contributor: Daniel 'maniel' Kaminski <maniel.rulez//gmail.com>

pkgname=nant
pkgver=0.91
pkgrel=4
pkgdesc="A free .NET build tool, like make but without make's problems"
arch=('i686' 'x86_64')
url="http://nant.sourceforge.net"
license="GPL"
depends=('mono')
makedepends=('pkgconfig')
source=("http://downloads.sourceforge.net/nant/$pkgname-$pkgver-bin.tar.gz")
md5sums=('669eddcd12f15a2b5a525b1d757a3ae4')
build() {
  export MONO_SHARED_DIR=$srcdir/.wabi
  mkdir -p "${MONO_SHARED_DIR}"
  mkdir $pkgdir/usr $pkgdir/usr/share $pkgdir/usr/share/NAnt $pkgdir/usr/bin

  cp -R $srcdir/$pkgname-$pkgver/* $pkgdir/usr/share/NAnt/
  echo '/usr/bin/mono /usr/share/NAnt/bin/NAnt.exe "$@"' > $pkgdir/usr/bin/nant
  chmod +x $pkgdir/usr/bin/nant
}