[arch-commits] Commit in vim-jedi/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Apr 7 18:39:05 UTC 2018


    Date: Saturday, April 7, 2018 @ 18:39:04
  Author: anthraxx
Revision: 314888

upgpkg: vim-jedi 0.9.0-1

Modified:
  vim-jedi/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-07 17:54:18 UTC (rev 314887)
+++ PKGBUILD	2018-04-07 18:39:04 UTC (rev 314888)
@@ -1,34 +1,40 @@
 # Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: Danilo Bargen <gezuru at gmail.com>
 
 pkgname=vim-jedi
 _reponame=jedi-vim
-pkgver=0.8.0
-pkgrel=3
-pkgdesc='Vim plugin for jedi, an awesome Python autocompletion.'
+pkgver=0.9.0
+pkgrel=1
+pkgdesc='Vim plugin for jedi, an awesome Python autocompletion'
 arch=('any')
-url="https://github.com/davidhalter/${_reponame}"
+url="https://github.com/davidhalter/jedi-vim"
 license=('MIT')
 depends=('vim' 'python-jedi' 'python')
-optdepends=('vim-supertab: for tab completion'
-            'python2-jedi: for Python 2 support')
+optdepends=('vim-supertab: tab completion'
+            'python2-jedi: Python 2 support')
+checkdepends=('python-pytest')
 groups=('vim-plugins')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/${_reponame}/archive/${pkgver}.tar.gz")
-sha256sums=('d1f000b8c93c915a1bcc379a4784e68e58192747a6fddc992af04245f68743b6')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/davidhalter/${_reponame}/archive/${pkgver}.tar.gz)
+sha256sums=('e53ef98472dd4789d5382f5082c0c25bf713264422389fca2f2a9bcddc1435d5')
 install=${pkgname}.install
 
+check() {
+  cd ${_reponame}-${pkgver}
+  py.test
+}
+
 package() {
-  cd "$srcdir/$_reponame-$pkgver"
+  cd ${_reponame}-${pkgver}
 
-  install -d "${pkgdir}/usr/share/vim/vimfiles/doc"
-
-  cp -dp --no-preserve=ownership jedi_vim.py initialize.py "${pkgdir}/usr/share/vim/vimfiles/"
-  cp -dp --no-preserve=ownership doc/jedi-vim.txt "${pkgdir}/usr/share/vim/vimfiles/doc/"
+  install -d "${pkgdir}/usr/share/vim/vimfiles"
+  cp -dpr --no-preserve=ownership pythonx "${pkgdir}/usr/share/vim/vimfiles"
+  cp -dpr --no-preserve=ownership doc "${pkgdir}/usr/share/vim/vimfiles/doc"
   cp -dpr --no-preserve=ownership after "${pkgdir}/usr/share/vim/vimfiles/after"
   cp -dpr --no-preserve=ownership autoload "${pkgdir}/usr/share/vim/vimfiles/autoload"
   cp -dpr --no-preserve=ownership ftplugin "${pkgdir}/usr/share/vim/vimfiles/ftplugin"
   cp -dpr --no-preserve=ownership plugin "${pkgdir}/usr/share/vim/vimfiles/plugin"
 
-  # install license file
-  install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list