[arch-commits] Commit in python-jsonschema/repos (2 files)
Daniel Wallace
dwallace at nymeria.archlinux.org
Thu May 22 21:23:19 UTC 2014
Date: Thursday, May 22, 2014 @ 23:23:18
Author: dwallace
Revision: 111727
archrelease: copy trunk to community-any
Added:
python-jsonschema/repos/community-any/
python-jsonschema/repos/community-any/PKGBUILD
(from rev 111726, python-jsonschema/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-jsonschema/repos/community-any/PKGBUILD (from rev 111726, python-jsonschema/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2014-05-22 21:23:18 UTC (rev 111727)
@@ -0,0 +1,37 @@
+# $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.3.0
+pkgrel=2
+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")
+
+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)
+ install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums=('410075e1969a9ec1838b5a6e1313c32b')
More information about the arch-commits
mailing list