updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python25-unittest2 / PKGBUILD
blob9b86a820678d0efa966d6ea39fb09073fdb7f507
1 pkgname=python25-unittest2
2 pkgver=0.5.1
3 pkgrel=1
4 pkgdesc="The new features in unittest for Python 2.7 backported to Python 2.5+."
5 arch=('any')
6 url="http://www.voidspace.org.uk/python/articles/unittest2.shtml"
7 license=("BSD")
8 depends=("python25")
9 makedepends=("python2-distribute")
10 changelog=Changelog
11 install="python25-unittest2.install"
12 source=(http://pypi.python.org/packages/source/u/unittest2/unittest2-$pkgver.tar.gz
13         LICENSE
14         python25-unittest2.install)
15 md5sums=('a0af5cac92bbbfa0c3b0e99571390e0f'
16          '0c162ecb7937c6a146e5b0457f0ccf1e'
17          '8d0d5f3cf2bb0782edb346433f4fce43')
18 sha256sums=('aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71'
19             'e0bfff5f29a59d078142b8b24b60b0105043057b9e238974d26ae778804ba9bc'
20             'c0f9871ab3456e4c73f3eb8f896630ba4a8d03267844ee916c45194c34fc91b5')
22 build() {
23   cd "$srcdir/unittest2-$pkgver"
24   python2.5 setup.py install "--root=$pkgdir" --optimize=1
26   # Leave /usr/bin/unit2 for unittest2 for Python 3
27   # Switch to full removal when upstream adds /usr/bin/unit2-2[.py]
28   mv "$pkgdir/usr/bin/unit2" "$pkgdir/usr/bin/unit2-25"
29   mv "$pkgdir/usr/bin/unit2.py" "$pkgdir/usr/bin/unit2-25.py"
32 package() {
33   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE