summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 20204aa3c46..d9998910301 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,8 @@
# Maintainer: Anton Karmanov <bergentroll@insiberia.net>
-pkgname=vim-python-pep8-indent
-pkgver=r145.60ba5e1
+
+_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'
@@ -8,18 +10,19 @@ arch=('any')
license=('custom:Public Domain')
depends=('vim')
makedepends=('git')
+conflicts=('vim-python-pep8-indent')
groups=('vim-plugins')
-source=("${pkgname}::git+${url}")
+source=("${_upstream_name}::git+${url}")
sha512sums=('SKIP')
install="${pkgname}.install"
pkgver() {
- cd ${pkgname}
+ cd ${_upstream_name}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd ${pkgname}
+ 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/"