[arch-commits] Commit in python-jsonpatch/repos/community-any (PKGBUILD PKGBUILD)
Balló György
bgyorgy at archlinux.org
Mon Mar 16 20:07:53 UTC 2020
Date: Monday, March 16, 2020 @ 20:07:53
Author: bgyorgy
Revision: 599845
archrelease: copy trunk to community-any
Added:
python-jsonpatch/repos/community-any/PKGBUILD
(from rev 599844, python-jsonpatch/trunk/PKGBUILD)
Deleted:
python-jsonpatch/repos/community-any/PKGBUILD
----------+
PKGBUILD | 91 ++++++++++++++++++++++---------------------------------------
1 file changed, 33 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-16 20:07:50 UTC (rev 599844)
+++ PKGBUILD 2020-03-16 20:07:53 UTC (rev 599845)
@@ -1,58 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Limao Luo <luolimao+AUR at gmail.com>
-
-pkgbase=python-jsonpatch
-pkgname=(python-jsonpatch python2-jsonpatch)
-pkgver=1.25
-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=('5e1d5b6dcb6ee847ddd561400fe2d00e07aa1827a63ab98a38cd5e91fa0e52d8635eba1192edbccf9c7b9ce9c7ce0a414d580665c427c87a820e533d26092ad6')
-
-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 599844, python-jsonpatch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-16 20:07:53 UTC (rev 599845)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+
+pkgname=python-jsonpatch
+pkgver=1.25
+pkgrel=2
+pkgdesc="An implementation of the JSON Patch format"
+arch=("any")
+url="https://github.com/stefankoegl/python-json-patch"
+license=("BSD")
+depends=("python-jsonpointer")
+makedepends=("python-setuptools" "python-pypandoc")
+checkdepends=('python-coverage')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz")
+sha512sums=('5e1d5b6dcb6ee847ddd561400fe2d00e07aa1827a63ab98a38cd5e91fa0e52d8635eba1192edbccf9c7b9ce9c7ce0a414d580665c427c87a820e533d26092ad6')
+
+build() {
+ cd "$srcdir"/python-json-patch-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-json-patch-$pkgver
+ coverage run --source=jsonpatch tests.py
+}
+
+package_python-jsonpatch() {
+ cd "$srcdir"/python-json-patch-$pkgver
+
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+ python setup.py install --prefix=/usr --root="$pkgdir"
+}
More information about the arch-commits
mailing list