summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c376ecd18d781acc804f07299ebd20eec0055c3b (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
# Maintainer: Kirill Klenov <horneds@gmail.com>
# Contributor: Mikhail felixoid Shiryaev <mr dot felixoid na gmail com>

pkgname=vim-python-mode-git
pkgver=0.8.1.r2.g4bda303
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/klen/python-mode'
install='install'
depends=('vim' 'python2')
makedepends=('git')
source=("${pkgname}::git+https://github.com/klen/python-mode#branch=master")
sha256sums=(SKIP)

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 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 AUTHORS Changelog.rst COPYING Gemfile logo.png Makefile Rakefile README.rst
  install -d ${pkgdir}/usr/share/vim/vimfiles/
  cp -R * ${pkgdir}/usr/share/vim/vimfiles/

}

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