summaryrefslogtreecommitdiff
path: root/pcr/python2-argparse/PKGBUILD
blob: 8cecb688943da28d82246eb031621646a696868d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Contributor (Arch): Lukas Linhart <bugs@almad.net>
# Contributor (Arch): Changaco <changaco ατ changaco δοτ net>
# Contributor (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=python2-argparse
pkgver=1.2.1
pkgrel=1
pkgdesc="Command line parsing library for python"
arch=('any')
url='http://code.google.com/p/argparse/'
conflicts=('argparse')
license=('Apache')
depends=('python2')
makedepends=('setuptools')
source=("http://argparse.googlecode.com/files/argparse-$pkgver.tar.gz")

# While python 2.7 has a builtin argparse module,
# packages built with setuptools still needs this one.

build() {
  cd ${srcdir}/argparse-$pkgver
  python2 setup.py build || return 1
  python2 setup.py install --root=${pkgdir} || return 1
}