[arch-commits] Commit in python-neovim/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jul 8 08:05:57 UTC 2018


    Date: Sunday, July 8, 2018 @ 08:05:56
  Author: felixonmars
Revision: 354665

archrelease: copy trunk to community-staging-any

Added:
  python-neovim/repos/community-staging-any/
  python-neovim/repos/community-staging-any/PKGBUILD
    (from rev 354663, python-neovim/trunk/PKGBUILD)

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

Copied: python-neovim/repos/community-staging-any/PKGBUILD (from rev 354663, python-neovim/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 08:05:56 UTC (rev 354665)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgbase=python-neovim
+pkgname=('python-neovim' 'python2-neovim')
+_realname=python-client
+pkgver=0.2.6
+pkgrel=2
+pkgdesc='Python client for Neovim'
+url='https://github.com/neovim/python-client'
+arch=('any')
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/neovim/python-client/archive/${pkgver}.tar.gz")
+sha256sums=('629c420b6e61b013f339bc6af409c74f9a135210f14e35967c1ceabe2b169c92')
+
+prepare() {
+  sed -i "s/msgpack-python/msgpack/g" ${_realname}-${pkgver}/setup.py
+  cp -a ${_realname}-${pkgver}{,-python2}
+}
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  python setup.py build
+
+  cd "${srcdir}/${_realname}-${pkgver}-python2"
+  python2 setup.py build
+}
+
+package_python-neovim() {
+  pkgdesc='Python 3 client for neovim'
+  depends=('neovim' 'python' 'python-msgpack' 'python-greenlet')
+
+  cd "${srcdir}/${_realname}-${pkgver}"
+  python setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}" --skip-build
+}
+
+package_python2-neovim() {
+  pkgdesc='Python 2 client for neovim'
+  depends=('neovim' 'python2' 'python2-msgpack' 'python2-greenlet' 'python2-trollius')
+
+  cd "${srcdir}/${_realname}-${pkgver}-python2"
+  python2 setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}" --skip-build
+}
+
+# vim:set sw=2 sts=2 et:



More information about the arch-commits mailing list