Date: Wednesday, June 1, 2016 @ 11:17:34 Author: fyan Revision: 177598
archrelease: copy trunk to community-any Added: python-jsonpatch/repos/community-any/PKGBUILD (from rev 177597, python-jsonpatch/trunk/PKGBUILD) Deleted: python-jsonpatch/repos/community-any/PKGBUILD ----------+ PKGBUILD | 120 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 60 insertions(+), 60 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-06-01 09:17:16 UTC (rev 177597) +++ PKGBUILD 2016-06-01 09:17:34 UTC (rev 177598) @@ -1,60 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> -# Contributor: Limao Luo <luolimao+...@gmail.com> - -pkgbase=python-jsonpatch -_pkgname=jsonpatch -pkgname=(python-jsonpatch python2-jsonpatch) -pkgver=1.13 -pkgrel=2 -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" - "python-pypandoc" "python2-pypandoc" "git") -checkdepends=('python-coverage' 'python2-coverage') -source=("git+https://github.com/stefankoegl/python-json-patch.git#tag=v$pkgver") -sha512sums=('SKIP') - -prepare(){ - cp -a python-json-patch{,-py2} - find python-json-patch-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + -} - -build() { - cd "$srcdir"/python-json-patch - python setup.py build - - cd "$srcdir"/python-json-patch-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/python-json-patch - coverage run --source=jsonpatch tests.py - - cd "$srcdir"/python-json-patch-py2 - coverage2 run --source=jsonpatch tests.py -} - -package_python-jsonpatch() { - depends=("python-jsonpointer") - - cd "$srcdir"/python-json-patch - - install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING - python setup.py install --prefix=/usr --root="$pkgdir" -} -package_python2-jsonpatch() { - depends=("python2-jsonpointer") - - cd "$srcdir"/python-json-patch-py2 - - install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING - python2 setup.py install --prefix=/usr --root="$pkgdir" - for _bin in "$pkgdir"/usr/bin/*; do - mv "$_bin"{,2} - done -} Copied: python-jsonpatch/repos/community-any/PKGBUILD (from rev 177597, python-jsonpatch/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-06-01 09:17:34 UTC (rev 177598) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: Limao Luo <luolimao+...@gmail.com> + +pkgbase=python-jsonpatch +_pkgname=jsonpatch +pkgname=(python-jsonpatch python2-jsonpatch) +pkgver=1.14 +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" + "python-pypandoc" "python2-pypandoc" "git") +checkdepends=('python-coverage' 'python2-coverage') +source=("git+https://github.com/stefankoegl/python-json-patch.git#tag=v$pkgver") +sha512sums=('SKIP') + +prepare(){ + cp -a python-json-patch{,-py2} + find python-json-patch-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + +} + +build() { + cd "$srcdir"/python-json-patch + python setup.py build + + cd "$srcdir"/python-json-patch-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/python-json-patch + coverage run --source=jsonpatch tests.py + + cd "$srcdir"/python-json-patch-py2 + coverage2 run --source=jsonpatch tests.py +} + +package_python-jsonpatch() { + depends=("python-jsonpointer") + + cd "$srcdir"/python-json-patch + + install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING + python setup.py install --prefix=/usr --root="$pkgdir" +} +package_python2-jsonpatch() { + depends=("python2-jsonpointer") + + cd "$srcdir"/python-json-patch-py2 + + install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING + python2 setup.py install --prefix=/usr --root="$pkgdir" + for _bin in "$pkgdir"/usr/bin/*; do + mv "$_bin"{,2} + done +}