summaryrefslogtreecommitdiff
path: root/pcr/python2-argparse
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-11-15 22:03:34 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-11-15 22:03:34 -0200
commitaf0617e9478512e64b1681d6e1da3baeb3f72216 (patch)
tree9861fb74dc5de2eac3edf9207e0a22791fa05c85 /pcr/python2-argparse
parentaf1438a26ac6cbdb10b9e780c1bc69c459963b78 (diff)
parent9e33443ecf9575280008587e78750259e0519335 (diff)
downloadabslibre-af0617e9478512e64b1681d6e1da3baeb3f72216.tar.gz
abslibre-af0617e9478512e64b1681d6e1da3baeb3f72216.tar.bz2
abslibre-af0617e9478512e64b1681d6e1da3baeb3f72216.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/python2-argparse')
-rw-r--r--pcr/python2-argparse/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/python2-argparse/PKGBUILD b/pcr/python2-argparse/PKGBUILD
new file mode 100644
index 000000000..cda95c0e2
--- /dev/null
+++ b/pcr/python2-argparse/PKGBUILD
@@ -0,0 +1,25 @@
+# Contributor: Lukas Linhart <bugs@almad.net>
+# Contributor: Changaco <changaco ατ changaco δοτ net>
+# Contributor: 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
+}