summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9998910301276a4d8c14a50c2b2cc2cd7649840 (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
# Maintainer: Anton Karmanov <bergentroll@insiberia.net>

_upstream_name=vim-python-pep8-indent
pkgname="${_upstream_name}-git"
pkgver='r145.60ba5e1'
pkgrel=1
pkgdesc='Vim plugin to improve Python indentation'
url='https://github.com/Vimjas/vim-python-pep8-indent'
arch=('any')
license=('custom:Public Domain')
depends=('vim')
makedepends=('git')
conflicts=('vim-python-pep8-indent')
groups=('vim-plugins')
source=("${_upstream_name}::git+${url}")
sha512sums=('SKIP')
install="${pkgname}.install"

pkgver() {
  cd ${_upstream_name}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd ${_upstream_name}
  install -Dm 644 COPYING.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -dm 755 "${pkgdir}/usr/share/vim/vimfiles/"
  cp -dr --no-preserve=ownership indent "${pkgdir}/usr/share/vim/vimfiles/"
}