updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / shunit2 / PKGBUILD
blob32c9cd05fbd89959b2fa0c97b3239bf9f7369b05
1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Geoffrey Teale <g.teale@elsevier.com>
3 pkgname=shunit2  
4 pkgver=2.1.6
5 pkgrel=6
6 pkgdesc="xUnit based unit testing for Unix shell scripts"
7 url="http://code.google.com/p/shunit2/"
8 arch=('i686' 'x86_64')
9 license=('LGPL')
10 depends=()
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 install=shunit2.install
16 source=(http://shunit2.googlecode.com/files/$pkgname-$pkgver.tgz
17         shunit2.install)
18 md5sums=('4af955ef88c454808754939c83afa22b'
19          'fb208a1eb601e1be84114df1fa2268db')
20 package() { 
21   cd ${srcdir}/$pkgname-$pkgver
22   install -d ${pkgdir}/usr/share/shunit2/bin
23   install -d ${pkgdir}/usr/share/shunit2/doc
24   install -d ${pkgdir}/usr/share/shunit2/examples
25   install -d ${pkgdir}/usr/share/shunit2/lib
26   install -d ${pkgdir}/usr/share/shunit2/src
27   install -t ${pkgdir}/usr/share/shunit2/bin ./bin/*
28   install -t ${pkgdir}/usr/share/shunit2/doc ./doc/*
29   install -t ${pkgdir}/usr/share/shunit2/examples ./examples/*
30   install -t ${pkgdir}/usr/share/shunit2/lib ./lib/*
31   install -t ${pkgdir}/usr/share/shunit2/src ./src/*
32   cd ${pkgdir}/usr/share/shunit2/bin
33   perl -p -i -e "s/BASE_DIR.*\\\$0.*/BASE_DIR=\"\/usr\/share\/shunit2\"/g" gen_test_results.sh