[arch-commits] Commit in python-json-rpc/repos (community-any community-any/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Mon May 28 10:15:16 UTC 2018


    Date: Monday, May 28, 2018 @ 10:15:15
  Author: foxboron
Revision: 332412

archrelease: copy trunk to community-any

Added:
  python-json-rpc/repos/community-any/
  python-json-rpc/repos/community-any/PKGBUILD
    (from rev 332411, python-json-rpc/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: python-json-rpc/repos/community-any/PKGBUILD (from rev 332411, python-json-rpc/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-05-28 10:15:15 UTC (rev 332412)
@@ -0,0 +1,53 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgbase=python-json-rpc
+pkgname=(python-json-rpc python2-json-rpc)
+pkgver=1.11.0
+pkgrel=2
+pkgdesc="JSON-RPC transport realisation"
+arch=('any')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-flask'
+              'python2-nose' 'python2-mock' 'python2-flask')
+url="https://github.com/pavlov99/json-rpc"
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pavlov99/json-rpc/archive/$pkgver.tar.gz")
+sha256sums=('20f895405eb9d1bf7c0470e8bb80c72c69d5b0389e0edfa7e20e810cf6a91f0f')
+
+prepare(){
+  cp -r json-rpc-$pkgver{,-py2}
+}
+
+build() {
+  cd  "$srcdir/json-rpc-$pkgver"
+  python setup.py build
+
+  cd  "$srcdir/json-rpc-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd  "$srcdir/json-rpc-$pkgver"
+  python setup.py nosetests
+
+  cd  "$srcdir/json-rpc-$pkgver-py2"
+  python2 setup.py nosetests
+}
+
+package_python-json-rpc() {
+  depends=('python')
+  cd "json-rpc-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-json-rpc() {
+  depends=('python2')
+  cd "json-rpc-$pkgver-py2"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list