1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
3 # Contributor: Cedric Girard <girard.cedric@gmail.com>
6 pkgname=python-$_pkgname
9 pkgdesc="Backport of the standard library's contextlib module to earlier Python versions"
11 url='https://github.com/jazzband/contextlib2'
14 makedepends=('python-setuptools')
15 source=("$pkgname-$pkgver::$url/archive/$pkgver.tar.gz")
16 sha512sums=('60bdee16ac14612bfd3986ee06a42f74653fc07d5c2da6f00e1bf552c75372f6ed3fd0e313e929e20d9d9efe8c48320d59ac2ae680ebc83efef413ea82776c9b')
19 echo "Building python-$_pkgname $pkgver"
20 cd "$srcdir"/$_pkgname-$pkgver
27 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
29 install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE