[arch-commits] Commit in python-jsonpointer/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Jan 27 20:19:44 UTC 2018


    Date: Saturday, January 27, 2018 @ 20:19:43
  Author: felixonmars
Revision: 287530

archrelease: copy trunk to community-testing-any

Added:
  python-jsonpointer/repos/community-testing-any/
  python-jsonpointer/repos/community-testing-any/COPYING
    (from rev 287529, python-jsonpointer/trunk/COPYING)
  python-jsonpointer/repos/community-testing-any/PKGBUILD
    (from rev 287529, python-jsonpointer/trunk/PKGBUILD)

----------+
 COPYING  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

Copied: python-jsonpointer/repos/community-testing-any/COPYING (from rev 287529, python-jsonpointer/trunk/COPYING)
===================================================================
--- community-testing-any/COPYING	                        (rev 0)
+++ community-testing-any/COPYING	2018-01-27 20:19:43 UTC (rev 287530)
@@ -0,0 +1,26 @@
+Copyright (c) 2011 Stefan Kögl <stefan at skoegl.net>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+

Copied: python-jsonpointer/repos/community-testing-any/PKGBUILD (from rev 287529, python-jsonpointer/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-01-27 20:19:43 UTC (rev 287530)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+
+pkgbase=python-jsonpointer
+pkgname=(python2-jsonpointer python-jsonpointer)
+pkgver=2.0
+pkgrel=1
+pkgdesc="Identify specific nodes in a JSON document (RFC 6901)"
+arch=('any')
+url="https://github.com/stefankoegl/python-json-pointer"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://pypi.io/packages/source/j/jsonpointer/jsonpointer-$pkgver.tar.gz")
+sha512sums=('e8e2b03c12c3fc5f65816fc71d1c07135ef74a0c912286f5b8bef2d9e21b8ae6e766d1aa2104b3eeb0e53928034321f25b203386ac3f5641b54b0641f6a08137')
+
+prepare(){
+    cp -a jsonpointer-$pkgver jsonpointer-$pkgver-2
+    find jsonpointer-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+    cd "$srcdir"/jsonpointer-$pkgver
+    python setup.py build
+
+    cd "$srcdir"/jsonpointer-$pkgver-2
+    python2 setup.py build
+}
+
+check() {
+    cd "$srcdir"/jsonpointer-$pkgver
+    python tests.py
+
+    cd "$srcdir"/jsonpointer-$pkgver-2
+    python2 tests.py
+}
+
+package_python-jsonpointer() {
+    depends=('python')
+
+    cd jsonpointer-$pkgver
+    python setup.py install --prefix=/usr --root="$pkgdir"
+    install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+package_python2-jsonpointer() {
+    depends=('python2')
+
+    cd jsonpointer-$pkgver-2
+    python2 setup.py install --prefix=/usr --root="$pkgdir"
+    mv "$pkgdir"/usr/bin/jsonpointer{,2}
+    install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list