aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-jsonpatch/APKBUILD
blob: 799d934f1f90699dbf4c008d362a129595f98327 (plain) (tree)







































                                                                                                                                                                    
# 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="python py-jsonpointer"
makedepends=""
install=""
subpackages=""
source="https://pypi.python.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"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python 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"