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

Felix Yan fyan at archlinux.org
Sat Sep 19 13:38:20 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:38:20
  Author: fyan
Revision: 140829

archrelease: copy trunk to community-staging-any

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

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

Copied: python-jsonschema/repos/community-staging-any/PKGBUILD (from rev 140828, python-jsonschema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:38:20 UTC (rev 140829)
@@ -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=3
+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