[arch-commits] Commit in python-jmespath/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Sep 9 03:38:59 UTC 2015
Date: Wednesday, September 9, 2015 @ 05:38:59
Author: fyan
Revision: 139656
archrelease: copy trunk to community-any
Added:
python-jmespath/repos/community-any/
python-jmespath/repos/community-any/PKGBUILD
(from rev 139655, python-jmespath/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-jmespath/repos/community-any/PKGBUILD (from rev 139655, python-jmespath/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-09-09 03:38:59 UTC (rev 139656)
@@ -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=1
+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