[arch-commits] Commit in (5 files)
Levente Polyak
anthraxx at archlinux.org
Tue Nov 3 19:24:17 UTC 2015
Date: Tuesday, November 3, 2015 @ 20:24:17
Author: anthraxx
Revision: 145875
addpkg: python-ujson 1.33-3
Added:
python-ujson/
python-ujson/repos/
python-ujson/trunk/
python-ujson/trunk/LICENSE.txt
python-ujson/trunk/PKGBUILD
-------------+
LICENSE.txt | 35 +++++++++++++++++++++++++++++++++++
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
Added: python-ujson/trunk/LICENSE.txt
===================================================================
--- python-ujson/trunk/LICENSE.txt (rev 0)
+++ python-ujson/trunk/LICENSE.txt 2015-11-03 19:24:17 UTC (rev 145875)
@@ -0,0 +1,35 @@
+Developed by ESN, an Electronic Arts Inc. studio.
+Copyright (c) 2014, Electronic Arts Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+* Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+* 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.
+* Neither the name of ESN, Electronic Arts Inc. nor the
+names of its contributors may be used to endorse or promote products
+derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 ELECTRONIC ARTS INC. 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.
+
+
+Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
+http://code.google.com/p/stringencoders/
+Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
+
+Numeric decoder derived from from TCL library
+http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
+ * Copyright (c) 1988-1993 The Regents of the University of California.
+ * Copyright (c) 1994 Sun Microsystems, Inc.
\ No newline at end of file
Added: python-ujson/trunk/PKGBUILD
===================================================================
--- python-ujson/trunk/PKGBUILD (rev 0)
+++ python-ujson/trunk/PKGBUILD 2015-11-03 19:24:17 UTC (rev 145875)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-ujson
+pkgname=('python-ujson' 'python2-ujson')
+_libname=${pkgname/python-/}
+pkgver=1.33
+pkgrel=3
+pkgdesc="Ultra fast JSON encoder and decoder for Python"
+url="https://github.com/esnme/ultrajson"
+arch=('i686' 'x86_64')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+sha512sums=('0f1f66212fbf94c03e048ba64c3bd817c50443d1a29b87f6a3a38f697a050f38821be4ba36a3b17a96930c69ee92973ac31bdd41851dea071af14cd4bbaf8480'
+ '74a87d69556e526768fe1d0d0b6ff888b8b34ab7e5c651a96b4e4c42599ce67825cd5a12222ad3a20745faf230eb778737b03afb5fe944057cd7dc705c4b5b6f')
+source=(https://pypi.python.org/packages/source/${_libname:0:1}/${_libname}/${_libname}-${pkgver}.zip
+ LICENSE.txt)
+
+package_python-ujson() {
+ cd ${_libname}-${pkgver}
+ depends=('python')
+
+ python setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+package_python2-ujson() {
+ cd ${_libname}-${pkgver}
+ depends=('python2')
+
+ python2 setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list