aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-jmespath/APKBUILD
blob: 66797245aae0e9a5f3323ca4f46f522310c9f092 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
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="python"
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"