archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-jsonpointer / trunk / PKGBUILD
blob9815906985985a9bce524006e325f280e5a613a6
1 # Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
2 # Contributor: Limao Luo <luolimao+AUR@gmail.com>
4 pkgname=python-jsonpointer
5 pkgver=2.3
6 pkgrel=2
7 pkgdesc="Identify specific nodes in a JSON document (RFC 6901)"
8 arch=('any')
9 url="https://github.com/stefankoegl/python-json-pointer"
10 license=('BSD')
11 depends=('python')
12 makedepends=('python-setuptools')
13 source=("https://pypi.io/packages/source/j/jsonpointer/jsonpointer-$pkgver.tar.gz")
14 sha512sums=('e04da474a5ec376d1cd2c764c2d7a11ac296450df199449994cb1dedf02a49df3ae3a4e75b2963370dba1da166464602b849a79609f7a98d8246dab0b342c819')
16 build() {
17     cd "$srcdir"/jsonpointer-$pkgver
18     python setup.py build
21 check() {
22     cd "$srcdir"/jsonpointer-$pkgver
23     python tests.py
26 package_python-jsonpointer() {
27     cd jsonpointer-$pkgver
28     python setup.py install --prefix=/usr --root="$pkgdir"
29     install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt