Date: Saturday, June 30, 2018 @ 19:52:09 Author: demize Revision: 349158
archrelease: copy trunk to community-staging-any Added: python-parse/repos/community-staging-any/ python-parse/repos/community-staging-any/LICENSE (from rev 349157, python-parse/trunk/LICENSE) python-parse/repos/community-staging-any/PKGBUILD (from rev 349157, python-parse/trunk/PKGBUILD) ----------+ LICENSE | 19 +++++++++++++++++++ PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) Copied: python-parse/repos/community-staging-any/LICENSE (from rev 349157, python-parse/trunk/LICENSE) =================================================================== --- community-staging-any/LICENSE (rev 0) +++ community-staging-any/LICENSE 2018-06-30 19:52:09 UTC (rev 349158) @@ -0,0 +1,19 @@ +Copyright (c) 2012-2013 Richard Jones <rich...@python.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. Copied: python-parse/repos/community-staging-any/PKGBUILD (from rev 349157, python-parse/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-06-30 19:52:09 UTC (rev 349158) @@ -0,0 +1,60 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: Aaron DeVore <aaron.dev...@gmail.com> + +pkgbase=python-parse +pkgname=(python-parse python2-parse) +pkgver=1.8.4 +pkgrel=2 + +pkgdesc='Parse strings using a specification based on the Python format() syntax.' +url='http://pypi.python.org/pypi/parse' +arch=('any') +license=('BSD') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("https://pypi.org/packages/source/p/parse/parse-$pkgver.tar.gz" + https://raw.githubusercontent.com/r1chardj0n3s/parse/b48b0494d27f64a9088cd92c1f8d58928af07317/LICENSE) # license from the bottom of parse.py + +md5sums=('fa69ab2fe846f9b183411391f7c6897b' + '68c10fa20482cc4328a1052695fb7e53') + +prepare() { + cp -r parse-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/parse-$pkgver + python setup.py build + + cd "$srcdir"/parse-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/parse-$pkgver + python test_parse.py + + cd "$srcdir"/parse-$pkgver-py2 + python2 test_parse.py +} + + +package_python-parse() { + depends=('python') + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + cd "$srcdir"/parse-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + + +package_python2-parse() { + depends=('python2') + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + cd "$srcdir"/parse-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +}