From 3854991366375ced472f100f2a6ace8a8da75f11 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 2 May 2015 12:42:27 -0500 Subject: python-argparse-1.3.0-2: updating version --- pcr/python-argparse/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pcr/python-argparse/PKGBUILD (limited to 'pcr/python-argparse') 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 +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +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 +} -- cgit v1.2.3-54-g00ecf