summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20204aa3c4631b5e9beca8b6610072790576aac9 (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
# Maintainer: Anton Karmanov <bergentroll@insiberia.net>
pkgname=vim-python-pep8-indent
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')
groups=('vim-plugins')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
install="${pkgname}.install"

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

package() {
  cd ${pkgname}
  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/"
}