[arch-commits] Commit in vim-ale/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Wed Mar 6 22:21:52 UTC 2019
Date: Wednesday, March 6, 2019 @ 22:21:52
Author: anthraxx
Revision: 437933
upgpkg: vim-ale 2.3.1-1
Modified:
vim-ale/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-06 22:19:16 UTC (rev 437932)
+++ PKGBUILD 2019-03-06 22:21:52 UTC (rev 437933)
@@ -2,7 +2,8 @@
# Contributor: David Thurstenson <thurstylark at gmail.com>
pkgname=vim-ale
-pkgver=2.1.0
+_gitcommit=0c6370f41a2e474fc8468a40e5b9a9312347d743
+pkgver=2.3.1
pkgrel=1
pkgdesc='Asynchronous Lint Engine'
url='https://github.com/w0rp/ale'
@@ -11,17 +12,23 @@
depends=('vim')
optdepends=('shellcheck: for sh/bash support'
'flake8: for python support')
+makedepends=('git')
groups=('vim-plugins')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/w0rp/ale/archive/v${pkgver}.tar.gz)
-sha256sums=('27c6da870601a966f9ee359ea12dca04dd9a3fe5a43f94240c9fd4258ef02dd6')
-sha512sums=('29da24fc3a0aca1517aee2c18517ad3b9d7dedb52227b5ca570bb057c671ea27fd4f47766217eb7d3579cdc539eba8f3fe80b89e88371c9cbe5b73854219d435')
+source=("${pkgname}::git+https://github.com/w0rp/ale#commit=${_gitcommit}")
+sha512sums=('SKIP')
+#validpgpkeys=('') key currently not available: 0FC1ECAA8C81CD83
+pkgver() {
+ cd ${pkgname}
+ git describe --always --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
package() {
- cd ale-${pkgver}
- install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -dm 755 "${pkgdir}/usr/share/vim/vimfiles"
- cp -dr --no-preserve=ownership {ale_linters,autoload,doc,ftplugin,plugin,syntax} \
- "${pkgdir}/usr/share/vim/vimfiles"
+ cd ${pkgname}
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -dm 755 "${pkgdir}/usr/share/vim/vimfiles"
+ cp -dr --no-preserve=ownership {ale_linters,autoload,doc,ftplugin,plugin,syntax} \
+ "${pkgdir}/usr/share/vim/vimfiles"
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list