Date: Monday, September 11, 2017 @ 05:21:59
  Author: felixonmars
Revision: 256872

archrelease: copy trunk to community-testing-any

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

----------+
 COPYING  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

Copied: python-jsonpointer/repos/community-testing-any/COPYING (from rev 
256871, python-jsonpointer/trunk/COPYING)
===================================================================
--- community-testing-any/COPYING                               (rev 0)
+++ community-testing-any/COPYING       2017-09-11 05:21:59 UTC (rev 256872)
@@ -0,0 +1,26 @@
+Copyright (c) 2011 Stefan Kögl <ste...@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 
256871, python-jsonpointer/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2017-09-11 05:21:59 UTC (rev 256872)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+...@gmail.com>
+
+pkgbase=python-jsonpointer
+pkgname=(python2-jsonpointer python-jsonpointer)
+pkgver=1.12
+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";
+        
"https://raw.github.com/stefankoegl/python-json-pointer/master/COPYING";)
+sha512sums=('9832752d93bc93c96293243ef703418e1b29b196809c70e9d1a669747d7cdb453a48288f90687b69a83f51b0859e9501286ea411edbc216c24ae72e7ceffe1f1'
+            
'6a4c6b57a9cfe227175852c67ab7536fcc23646761cd10d25800edfccf408b139b1f589313f6cf6717c5764ca2e554cc16921118e01aebfbdf3ddfada82c6bac')
+
+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 "$srcdir"/COPYING 
"$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+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 "$srcdir"/COPYING 
"$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}

Reply via email to