Date: Wednesday, November 9, 2016 @ 20:01:40 Author: jsteel Revision: 195239
archrelease: copy trunk to community-any Added: python-argparse/repos/community-any/ python-argparse/repos/community-any/PKGBUILD (from rev 195238, python-argparse/trunk/PKGBUILD) ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Copied: python-argparse/repos/community-any/PKGBUILD (from rev 195238, python-argparse/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2016-11-09 20:01:40 UTC (rev 195239) @@ -0,0 +1,53 @@ +# Maintainer: Jonathan Steel <jsteel at archlinux.org> +# Contributor: mawcomw <mawc...@gmail.com> + +pkgbase=python-argparse +pkgname=('python-argparse' 'python2-argparse') +pkgver=1.4.0 +pkgrel=3 +arch=('any') +url="https://pypi.python.org/pypi/argparse" +license=('Python') +makedepends=('python2' 'python2-setuptools' 'python' 'python-setuptools') +source=("https://pypi.python.org/packages/source/a/argparse/argparse-$pkgver.tar.gz") +md5sums=('08062d2ceb6596fcbc5a7e725b53746f') + +prepare() { + cp -a 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 + python setup.py test + + cd "$srcdir"/python2-argparse-$pkgver + python2 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 +}