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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 17:49:41 UTC 2016


    Date: Saturday, December 24, 2016 @ 17:49:39
  Author: felixonmars
Revision: 201680

archrelease: copy trunk to community-staging-any

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

----------+
 COPYING  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

Copied: python-jsonpointer/repos/community-staging-any/COPYING (from rev 201679, python-jsonpointer/trunk/COPYING)
===================================================================
--- community-staging-any/COPYING	                        (rev 0)
+++ community-staging-any/COPYING	2016-12-24 17:49:39 UTC (rev 201680)
@@ -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-staging-any/PKGBUILD (from rev 201679, python-jsonpointer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 17:49:39 UTC (rev 201680)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+
+pkgbase=python-jsonpointer
+_pkgname=jsonpointer
+pkgname=(python2-jsonpointer python-jsonpointer)
+pkgver=1.10
+pkgrel=2
+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=(http://pypi.python.org/packages/source/j/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz
+    https://raw.github.com/stefankoegl/python-json-pointer/master/COPYING)
+sha256sums=('9fa5dcac35eefd53e25d6cd4c310d963c9f0b897641772cd6e5e7b89df7ee0b1'
+            'd8b24f15d472885f788a2d6e985850f264627b86012a17bb242c83f310d907e5')
+sha512sums=('b2df5f19b14b670825b18f7da4ca50b089beb2ccbb1c69acfc904eed82b5315ad19940b4aaa8f8504c2fc7d477778d65e31f492dd30ee8b5ba95ccfd0eaeb9b1'
+            '6a4c6b57a9cfe227175852c67ab7536fcc23646761cd10d25800edfccf408b139b1f589313f6cf6717c5764ca2e554cc16921118e01aebfbdf3ddfada82c6bac')
+
+export LANG=en_US.UTF-8
+prepare(){
+    cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2
+    find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+    cd $srcdir/$_pkgname-$pkgver
+    python setup.py build
+    cd $srcdir/$_pkgname-$pkgver-2
+    python2 setup.py build
+}
+
+package_python-jsonpointer() {
+    cd $_pkgname-$pkgver
+    depends=(python)
+    python setup.py install --prefix=/usr --root="$pkgdir"
+    install -Dm644 $SRCDEST/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+package_python2-jsonpointer() {
+    cd $_pkgname-$pkgver-2
+    depends=(python2)
+    python2 setup.py install --prefix=/usr --root="$pkgdir"
+    mv $pkgdir/usr/bin/jsonpointer $pkgdir/usr/bin/jsonpointer2 
+    install -Dm644 $SRCDEST/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}



More information about the arch-commits mailing list