archrelease: copy trunk to community-any
[arch-community.git] / python-argparse / trunk / PKGBUILD
blob594173a88fe611ceb2bc3b4a350bb461989ce6da
1 # Maintainer:  Jonathan Steel <jsteel at archlinux.org>
2 # Contributor: mawcomw <mawcomw@gmail.com>
4 pkgname=python-argparse
5 pkgver=1.4.0
6 pkgrel=14
7 arch=('any')
8 pkgdesc="Python3 command-line parsing library"
9 url="https://pypi.python.org/pypi/argparse"
10 license=('Python')
11 depends=('python')
12 makedepends=('python' 'python-setuptools')
13 source=("https://pypi.python.org/packages/source/a/argparse/argparse-$pkgver.tar.gz")
14 sha256sums=('62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4')
16 build() {
17   cd argparse-$pkgver
18   python setup.py build
21 check(){
22   cd argparse-$pkgver
23   python -m unittest discover -vs test
26 package() {
27   cd argparse-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt