aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-jsonpatch/APKBUILD
blob: ccdccdc72917b85a268bb0b09350cbf14304c265 (plain)
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
# Contributor: Matt Dainty <matt+alpine@bodgit-n-scarper.com>
# Maintainer:
pkgname=py-jsonpatch
_pkgname=jsonpatch
pkgver=1.13
pkgrel=0
pkgdesc="Apply JSON-Patches (RFC 6902)"
url="https://github.com/stefankoegl/python-json-patch"
arch="noarch"
license="BSD"
depends="python2 py-jsonpointer"
makedepends=""
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="4d6650ced683f632e117bafe5d9f093b  jsonpatch-1.13.tar.gz"
sha256sums="9470656a08002e309632b59772b206ce0564c9a77b44c25f05f49dd2cad248d5  jsonpatch-1.13.tar.gz"
sha512sums="23f0c92c2c8834d5e3129e9ba78ece7da2646dd60d5b0522b0f09d83e20057ef7517042e5ee8547804185d3ce23cff394c8fe78df93fad7999fae12cc5467a45  jsonpatch-1.13.tar.gz"