# Maintainer: Valery Kartel # Contributor: Valery Kartel pkgname=py-jmespath _pkgname=jmespath pkgver=0.9.0 pkgrel=0 pkgdesc="JMESPath is a query language for JSON" url="http://jmespath.org" arch="noarch" license="MIT" depends="python2" depends_dev= makedepends="python2-dev py-setuptools" install= subpackages="$pkgname-tools" source="$_pkgname-$pkgver.tar.gz::https://github.com/boto/$_pkgname/archive/$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname.py-$pkgver build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } tools() { pkgdesc="$pkgdesc (command line tools)" depends="$pkgname" arch="noarch" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr } md5sums="0b4e773df9b74377b916cb156c2be144 jmespath-0.9.0.tar.gz" sha256sums="64ba1d91bafef53b730d9eb696aa4a74df3dc5b6ff728c5563069382936da860 jmespath-0.9.0.tar.gz" sha512sums="123c49184add3a994f4289ca79152234b6723ec4ba10a090d0823f12124925ea50ff8b16d0ea491e7a0505181216faa696442ac2fd0c9b2972c78fd1e42fd850 jmespath-0.9.0.tar.gz"