1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Geoffrey Teale <g.teale@elsevier.com>
6 pkgdesc="xUnit based unit testing for Unix shell scripts"
7 url="http://code.google.com/p/shunit2/"
15 install=shunit2.install
16 source=(http://shunit2.googlecode.com/files/$pkgname-$pkgver.tgz
18 md5sums=('4af955ef88c454808754939c83afa22b'
19 'fb208a1eb601e1be84114df1fa2268db')
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