updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python-unittest2 / PKGBUILD
blob15ecbabf9a02d2ceab51107810736d69c359263a
1 # Maintainer: Aaron DeVore <aaron.devore@gmail.com>
3 pkgname=python-unittest2
4 pkgver=0.5.1
5 pkgrel=2
6 pkgdesc="The new features in unittest for Python 3.2 backported to Python 3.0+"
7 license=("BSD")
8 url="http://www.voidspace.org.uk/python/articles/unittest2.shtml"
9 depends=("python")
10 makedepends=("python-distribute")
11 changelog=Changelog
12 source=(http://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-$pkgver.tar.gz LICENSE)
13 arch=('any')
14 md5sums=('8824ff92044310d9365f90d892bf0f09' '0c162ecb7937c6a146e5b0457f0ccf1e')
15 sha256sums=('78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403'
16             'e0bfff5f29a59d078142b8b24b60b0105043057b9e238974d26ae778804ba9bc')
18 build() {
19   cd "$srcdir/unittest2py3k-$pkgver"
20   python setup.py install "--root=$pkgdir" --optimize=1
21   # Remove this when upstream adds unit2-3[.py] symlinks
22   cp -a $pkgdir/usr/bin/unit2 $pkgdir/usr/bin/unit2-3
23   cp -a $pkgdir/usr/bin/unit2.py $pkgdir/usr/bin/unit2-3.py
26 package() {
27   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE