[arch-commits] Commit in python-jmespath/repos (2 files)
Felix Yan
fyan at archlinux.org
Sun Sep 20 03:21:02 UTC 2015
Date: Sunday, September 20, 2015 @ 05:21:02
Author: fyan
Revision: 141148
archrelease: copy trunk to community-staging-any
Added:
python-jmespath/repos/community-staging-any/
python-jmespath/repos/community-staging-any/PKGBUILD
(from rev 141147, python-jmespath/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-jmespath/repos/community-staging-any/PKGBUILD (from rev 141147, python-jmespath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-20 03:21:02 UTC (rev 141148)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Severance aur.severach AatT spamgourmet.com
+# Contributor: Chris Fordham <chris [at] fordham-nagy [dot] id [dot] au> aka flaccid
+# Package Source: https://github.com/flaccid/archlinux-packages/blob/master/python-jmespath/PKGBUILD
+
+pkgbase=python-jmespath
+pkgname=(python-jmespath python2-jmespath)
+pkgver=0.7.1
+pkgrel=2
+pkgdesc='A query language for JSON'
+arch=('any')
+url="https://github.com/jmespath/jmespath"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-py' 'python2-py')
+source=("git+https://github.com/jmespath/jmespath.py.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+ cp -a jmespath.py{,-py2}
+}
+
+build() {
+ cd "$srcdir/jmespath.py"
+ python setup.py build
+
+ cd "$srcdir/jmespath.py-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/jmespath.py"
+ LC_CTYPE=en_US.utf8 nosetests3
+
+ cd "$srcdir/jmespath.py-py2"
+ LC_CTYPE=en_US.utf8 nosetests2
+}
+
+package_python-jmespath() {
+ depends=('python')
+
+ cd $srcdir/jmespath.py
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-jmespath() {
+ depends=('python2')
+
+ cd $srcdir/jmespath.py-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/jp{,2}.py
+}
More information about the arch-commits
mailing list