lunarscum

Modified python2-rpyc PKGBUILD

Dec 13th, 2019
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Sebastien Leduc <sebastien AT sleduc DOT fr>
  2.  
  3. pkgname=('python-rpyc' 'python2-rpyc')
  4. pkgbase='python-rpyc'
  5. _realname=rpyc
  6. pkgver=4.0.2
  7. pkgrel=1
  8. pkgdesc="Remote Python Call (RPyC), a transparent and symmetric RPC library"
  9. url="http://rpyc.readthedocs.org"
  10. arch=('any')
  11. license=('MIT')
  12. source=("https://files.pythonhosted.org/packages/ba/88/1cea477a4ad7c0f546a4c82aa367185be7b8fce512db8283e82de8454772/$_realname-$pkgver.tar.gz")
  13. md5sums=('b6461956adf14ceda013b8d189c1a5e9')
  14. makedepends=("python-setuptools")
  15.  
  16. package_python-rpyc() {
  17.   depends=('python' 'python-plumbum')
  18.   cd "$srcdir/$_realname-$pkgver"
  19.   python setup.py install --root="$pkgdir"/ --optimize=1
  20. }
  21.  
  22. package_python2-rpyc() {
  23.   depends=('python2' 'python2-plumbum')
  24.   cd "$srcdir/$_realname-$pkgver"
  25.   python2 setup.py install --root="$pkgdir"/ --optimize=1
  26.   mv "$pkgdir"/usr/bin/rpyc_classic{,2}.py
  27.   mv "$pkgdir"/usr/bin/rpyc_registry{,2}.py
  28. }
  29. # vim:set ts=2 sw=2 et:
RAW Paste Data