[arch-commits] Commit in python-jsonschema/repos (2 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sat Dec 24 17:33:07 UTC 2016


    Date: Saturday, December 24, 2016 @ 17:33:06
  Author: bpiotrowski
Revision: 201639

archrelease: copy trunk to community-staging-any

Added:
  python-jsonschema/repos/community-staging-any/
  python-jsonschema/repos/community-staging-any/PKGBUILD
    (from rev 201638, python-jsonschema/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: python-jsonschema/repos/community-staging-any/PKGBUILD (from rev 201638, python-jsonschema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 17:33:06 UTC (rev 201639)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred.com>
+# Contributor: Bogdan Szczurek <thebodzio at gmail.com>
+# Contributor: Ismo Toijala <ismo.toijala at gmail.com>
+
+pkgbase=python-jsonschema
+_pkgname=jsonschema
+pkgname=(python-jsonschema python2-jsonschema)
+pkgver=2.5.1
+pkgrel=4
+pkgdesc="An implementation of JSON Schema validation for Python"
+arch=(any)
+url="http://pypi.python.org/pypi/jsonschema"
+license=('MIT')
+makedepends=(python-setuptools python2-setuptools)
+source=("http://pypi.python.org/packages/source/j/jsonschema/${pkgname:7}-$pkgver.tar.gz")
+md5sums=('374e848fdb69a3ce8b7e778b47c30640')
+
+prepare(){
+    cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2
+    find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+package_python-jsonschema() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  depends=(python)
+  install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-jsonschema() {
+  cd "$srcdir/$_pkgname-$pkgver-2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  depends=(python2-functools32)
+  install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  mv $pkgdir/usr/bin/jsonschema{,2}
+}
+



More information about the arch-commits mailing list