[arch-commits] Commit in python-jsonrpclib-pelix/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat Sep 28 14:42:46 UTC 2019


    Date: Saturday, September 28, 2019 @ 14:42:45
  Author: foxboron
Revision: 511991

upgpkg: python-jsonrpclib-pelix 0.4.0-2

Modified:
  python-jsonrpclib-pelix/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++-----------------------
 1 file changed, 4 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 14:40:23 UTC (rev 511990)
+++ PKGBUILD	2019-09-28 14:42:45 UTC (rev 511991)
@@ -1,12 +1,12 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 # Contributor: Andy Weidenbaum <archbaum at gmail.com>
 
-pkgbase=python-jsonrpclib-pelix
-pkgname=(python-jsonrpclib-pelix python2-jsonrpclib-pelix)
+pkgname=python-jsonrpclib-pelix
 pkgver=0.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax"
 arch=(any)
+depends=(python)
 makedepends=(python-setuptools python2-setuptools)
 url="https://github.com/tcalmant/jsonrpclib"
 license=('Apache')
@@ -13,31 +13,12 @@
 source=(https://pypi.io/packages/source/j/jsonrpclib-pelix/jsonrpclib-pelix-$pkgver.tar.gz)
 sha256sums=('19c558e169a51480b39548783067ca55046b62b2409ab4559931255e12f635de')
 
-prepare() {
-  cp -r jsonrpclib-pelix-$pkgver jsonrpclib-pelix-$pkgver-py2
-  cd jsonrpclib-pelix-$pkgver-py2
-  find -name '*.py' | xargs sed -e 's|/usr/bin/python|/usr/bin/python2|' -e 's|/usr/bin/env python|/usr/bin/env python2|' -i
-}
-
 build() {
   cd jsonrpclib-pelix-$pkgver
   python setup.py build
-
-  cd ../jsonrpclib-pelix-$pkgver-py2
-  python2 setup.py build
 }
 
-package_python-jsonrpclib-pelix() {
-  depends=(python)
-  conflicts=(python-jsonrpclib)
+package() {
   cd jsonrpclib-pelix-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-jsonrpclib-pelix() {
-  depends=(python2)
-  conflicts=(python2-jsonrpclib)
-  cd jsonrpclib-pelix-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-


More information about the arch-commits mailing list