Date: Sunday, December 31, 2017 @ 11:41:18 Author: felixonmars Revision: 277540
archrelease: copy trunk to community-any Added: python-jsonpatch/repos/community-any/PKGBUILD (from rev 277539, python-jsonpatch/trunk/PKGBUILD) Deleted: python-jsonpatch/repos/community-any/PKGBUILD ----------+ PKGBUILD | 118 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-12-31 11:40:50 UTC (rev 277539) +++ PKGBUILD 2017-12-31 11:41:18 UTC (rev 277540) @@ -1,59 +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=(python-jsonpatch python2-jsonpatch) -pkgver=1.20 -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") -checkdepends=('python-coverage' 'python2-coverage') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz") -sha512sums=('7b4222115bcffbd4928a8b10f00432ec2861e4b09e3f39bff8169ca036f2894d6f1fb94d96b049b5271f0aa5474f49ee67168caf0fe62260cf939290e6b87437') - -prepare(){ - 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-$pkgver - python setup.py build - - cd "$srcdir"/python-json-patch-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/python-json-patch-$pkgver - coverage run --source=jsonpatch tests.py - - cd "$srcdir"/python-json-patch-$pkgver-py2 - coverage2 run --source=jsonpatch tests.py -} - -package_python-jsonpatch() { - depends=("python-jsonpointer") - - cd "$srcdir"/python-json-patch-$pkgver - - 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-$pkgver-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 277539, python-jsonpatch/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-12-31 11:41:18 UTC (rev 277540) @@ -0,0 +1,59 @@ +# $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=(python-jsonpatch python2-jsonpatch) +pkgver=1.21 +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") +checkdepends=('python-coverage' 'python2-coverage') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz") +sha512sums=('c650c75bdc322ccd4d89b18ab85b3d417f4a3e7f200c0ffe585495ca15f88dea9cbaf5fb2d47ab0b328189cd85ff9d58b718151817ec01536808fbd328cd1409') + +prepare(){ + 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-$pkgver + python setup.py build + + cd "$srcdir"/python-json-patch-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/python-json-patch-$pkgver + coverage run --source=jsonpatch tests.py + + cd "$srcdir"/python-json-patch-$pkgver-py2 + coverage2 run --source=jsonpatch tests.py +} + +package_python-jsonpatch() { + depends=("python-jsonpointer") + + cd "$srcdir"/python-json-patch-$pkgver + + 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-$pkgver-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 +}