upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-contextlib2 / trunk / PKGBUILD
blobae887d46f9e32ba33fbc2389f70f7c5a2e0142c8
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 # Contributor: Cedric Girard <girard.cedric@gmail.com>
5 _pkgname=contextlib2
6 pkgname=python-$_pkgname
7 pkgver=21.6.0
8 pkgrel=2
9 pkgdesc="Backport of the standard library's contextlib module to earlier Python versions"
10 arch=('any')
11 url='https://github.com/jazzband/contextlib2'
12 license=('PSF')
13 depends=('python')
14 makedepends=('python-setuptools')
15 source=("$pkgname-$pkgver::$url/archive/$pkgver.tar.gz")
16 sha512sums=('60bdee16ac14612bfd3986ee06a42f74653fc07d5c2da6f00e1bf552c75372f6ed3fd0e313e929e20d9d9efe8c48320d59ac2ae680ebc83efef413ea82776c9b')
18 build() {
19   echo "Building python-$_pkgname $pkgver"
20   cd "$srcdir"/$_pkgname-$pkgver
21   python setup.py build
24 package() {
25   cd $_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