summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b91c1baa0067f203e26c1b0728e230ac33bb2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Kirill Klenov <horneds@gmail.com>
# Contributor: Mikhail felixoid Shiryaev <mr dot felixoid na gmail com>

pkgname=vim-python-mode-git
pkgver=0.14.0.r12.g2db3b9e
pkgrel=1
pkgdesc='Python-mode is a vim plugin that allows you to use the pylint, rope, pydoc library in vim to provide features like python code looking for bugs, refactoring and some other useful things.'
arch=('any')
license=('LGPL3')
url='https://github.com/python-mode/python-mode'
install='install'
depends=(
  'vim'
  'python'
  'python-pyflakes'
  'python-pylint'
  'python-rope'
  'python-pydocstyle'
  'python-astroid'
  'python-appdirs'
  'python-mccabe'
  'python-pycodestyle'
)
makedepends=('git')
provides=('vim-python-mode')
conflicts=('vim-python-mode')
source=("${pkgname}::git+https://github.com/python-mode/python-mode#branch=develop")
sha256sums=(SKIP)

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}


package() {

  cd ${srcdir}/${pkgname}
  rm CHANGELOG.md Dockerfile Dockerfile.base README-Docker.md docker-compose.yml readme.md
  install -d ${pkgdir}/usr/share/vim/vimfiles/
  cp -R * ${pkgdir}/usr/share/vim/vimfiles/

}

# vim:set ts=2 sw=2 et: