summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-02 12:42:27 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-02 12:42:27 -0500
commit3854991366375ced472f100f2a6ace8a8da75f11 (patch)
tree037311f286f31ca30e98b5921f8de9c1edee16ba
parentd8794cb731e962db8ce83b24c34c039b83f2db9b (diff)
downloadabslibre-3854991366375ced472f100f2a6ace8a8da75f11.tar.gz
abslibre-3854991366375ced472f100f2a6ace8a8da75f11.tar.bz2
abslibre-3854991366375ced472f100f2a6ace8a8da75f11.zip
python-argparse-1.3.0-2: updating version
-rw-r--r--pcr/python-argparse/PKGBUILD53
-rw-r--r--pcr/python2-argparse/PKGBUILD25
2 files changed, 53 insertions, 25 deletions
diff --git a/pcr/python-argparse/PKGBUILD b/pcr/python-argparse/PKGBUILD
new file mode 100644
index 000000000..55fe0b33d
--- /dev/null
+++ b/pcr/python-argparse/PKGBUILD
@@ -0,0 +1,53 @@
+# Contributor (Arch): mawcomw <mawcomw@gmail.com>
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+
+pkgbase=python-argparse
+pkgname=('python-argparse' 'python2-argparse')
+pkgver=1.3.0
+pkgrel=2
+arch=('any')
+url="https://pypi.python.org/pypi/argparse"
+license=('PSF')
+makedepends=('python2' 'python2-setuptools' 'python' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/a/argparse/argparse-$pkgver.tar.gz")
+md5sums=('9bcf7f612190885c8c85e30ba41db3c7')
+
+prepare() {
+ cp -r argparse-${pkgver} python2-argparse-${pkgver}
+}
+
+build() {
+ cd $srcdir/argparse-${pkgver}
+ python setup.py build
+
+ cd $srcdir/python2-argparse-${pkgver}
+ python2 setup.py build
+}
+
+#check(){
+# cd $srcdir/argparse-${pkgver}
+# python2 setup.py test
+#
+# cd $srcdir/python2-argparse-${pkgver}
+# python setup.py test
+#}
+
+package_python-argparse() {
+ depends=('python' )
+ pkgdesc="Python3 command-line parsing library"
+
+ cd argparse-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-argparse() {
+ depends=('python2' )
+ pkgdesc="Python2 command-line parsing library"
+
+ cd python2-argparse-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.txt
+}
diff --git a/pcr/python2-argparse/PKGBUILD b/pcr/python2-argparse/PKGBUILD
deleted file mode 100644
index 8cecb6889..000000000
--- a/pcr/python2-argparse/PKGBUILD
+++ /dev/null
@@ -1,25 +0,0 @@
-# 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
-}