updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / nunit / PKGBUILD
blob654fa10627ef15e0a28d985e6aa96d7e448dc5cd
1 # Contributor: Jan Stępień <jstepien@users.sourceforge.net>
3 pkgname=nunit
4 pkgver=2.5.10
5 pkgrel=1
6 pkgdesc="Unit-testing framework for all .NET languages."
7 arch=('any')
8 license=('custom')
9 url="http://www.nunit.com"
10 depends=('mono')
11 _branch=2.5
12 _build=11092
13 source=(nunit.sh
14         http://launchpad.net/nunitv2/$_branch/$pkgver/+download/NUnit-$pkgver.$_build.zip)
15 md5sums=('7bf17d38092de3f5bcd5fd96dbef0c62'
16         '8ea9a359d08d1b6e8ed908a54b352f8b')
18 build() {
19         mkdir -p $startdir/pkg/usr/{bin/,share/{doc/$pkgname/{files/,img/},licenses/$pkgname/}} \
20         || return 1
21         mkdir -p $startdir/pkg/usr/lib/$pkgname/{framework,lib,tests} || return 1
22         install -m755 nunit.sh $startdir/pkg/usr/bin/nunit || return 1
23         cd "$startdir/src/NUnit-$pkgver.$_build" || return 1
24         install -m644 bin/net-2.0/*.{conf,bat,exe,config,nunit,dll,html} \
25         $startdir/pkg/usr/lib/$pkgname || return 1
26         install -m644 bin/net-2.0/framework/* \
27         $startdir/pkg/usr/lib/$pkgname/framework || return 1
28         install -m644 bin/net-2.0/lib/* $startdir/pkg/usr/lib/$pkgname/lib || return 1
29         install -m644 bin/net-2.0/tests/* $startdir/pkg/usr/lib/$pkgname/tests || return 1
30         install -m644 license.txt $startdir/pkg/usr/share/licenses/$pkgname/ || return 1
31         install -m644 doc/*.{js,ico,css,html} $startdir/pkg/usr/share/doc/$pkgname/ || return 1
32         install -m644 doc/files/* $startdir/pkg/usr/share/doc/$pkgname/files || return 1
33         install -m644 doc/img/* $startdir/pkg/usr/share/doc/$pkgname/img || return 1