mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/python-jsonpatch to 1.16-1
This commit is contained in:
parent
5d009c6d05
commit
0af55783cd
1 changed files with 12 additions and 15 deletions
|
@ -7,46 +7,43 @@
|
|||
# - drop python{,2}-pypandoc makedepends
|
||||
|
||||
pkgbase=python-jsonpatch
|
||||
_pkgname=jsonpatch
|
||||
pkgname=(python-jsonpatch python2-jsonpatch)
|
||||
pkgver=1.15
|
||||
_commit=27f1f987e0c9d101a8dc01cc322d5f31ca89d074
|
||||
pkgver=1.16
|
||||
pkgrel=1
|
||||
pkgdesc="An implementation of the JSON Patch format"
|
||||
arch=("any")
|
||||
url="https://github.com/stefankoegl/python-json-patch"
|
||||
license=("BSD")
|
||||
makedepends=("python-setuptools" "python2-setuptools" "python-jsonpointer" "python2-jsonpointer"
|
||||
"git")
|
||||
makedepends=("python-setuptools" "python2-setuptools" "python-jsonpointer" "python2-jsonpointer")
|
||||
checkdepends=('python-coverage' 'python2-coverage')
|
||||
source=("git+https://github.com/stefankoegl/python-json-patch.git#commit=$_commit")
|
||||
sha512sums=('SKIP')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('a1a4e7792790bd08ba9649066a455e244135ea8548eb81f24c5df76a9ae7dd3b360f43b16c08e1ef9376189940a74699a7a108ed5cc35283da82e83e9d1e2b79')
|
||||
|
||||
prepare(){
|
||||
cp -a python-json-patch{,-py2}
|
||||
find python-json-patch-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
|
||||
cp -a python-json-patch-$pkgver{,-py2}
|
||||
find python-json-patch-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/python-json-patch
|
||||
cd "$srcdir"/python-json-patch-$pkgver
|
||||
python setup.py build
|
||||
|
||||
cd "$srcdir"/python-json-patch-py2
|
||||
cd "$srcdir"/python-json-patch-$pkgver-py2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"/python-json-patch
|
||||
cd "$srcdir"/python-json-patch-$pkgver
|
||||
coverage run --source=jsonpatch tests.py
|
||||
|
||||
cd "$srcdir"/python-json-patch-py2
|
||||
cd "$srcdir"/python-json-patch-$pkgver-py2
|
||||
coverage2 run --source=jsonpatch tests.py
|
||||
}
|
||||
|
||||
package_python-jsonpatch() {
|
||||
depends=("python-jsonpointer")
|
||||
|
||||
cd "$srcdir"/python-json-patch
|
||||
cd "$srcdir"/python-json-patch-$pkgver
|
||||
|
||||
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
||||
python setup.py install --prefix=/usr --root="$pkgdir"
|
||||
|
@ -54,7 +51,7 @@ package_python-jsonpatch() {
|
|||
package_python2-jsonpatch() {
|
||||
depends=("python2-jsonpointer")
|
||||
|
||||
cd "$srcdir"/python-json-patch-py2
|
||||
cd "$srcdir"/python-json-patch-$pkgver-py2
|
||||
|
||||
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
|
|
Loading…
Reference in a new issue