From 02003102508a33b23ceed0a447b16190ca9cb601 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Mon, 25 Dec 2017 17:45:18 -0800 Subject: [PATCH] modified: vim-lightline-git/PKGBUILD clean up unneeded comments, fix version function --- vim-lightline-git/.SRCINFO | 13 ++++++++----- vim-lightline-git/PKGBUILD | 5 ++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/vim-lightline-git/.SRCINFO b/vim-lightline-git/.SRCINFO index 7624f43..32da76f 100644 --- a/vim-lightline-git/.SRCINFO +++ b/vim-lightline-git/.SRCINFO @@ -1,16 +1,19 @@ -# Generated by mksrcinfo v8 -# Thu Dec 10 17:28:20 UTC 2015 pkgbase = vim-lightline-git pkgdesc = A light and configurable statusline/tabline for Vim - pkgver = latest + pkgver = r515.583138f pkgrel = 1 url = https://github.com/itchyny/lightline.vim - install = vimdoc.install + install = lightline.install arch = any license = MIT makedepends = git depends = vim-runtime - source = git://github.com/itchyny/lightline.vim.git + depends = neovim + provides = vim-lightline-git + conflicts = vim-lightline + conflicts = vim-lightline-git + replaces = vim-lightline + source = vim-lightline::git://github.com/itchyny/lightline.vim md5sums = SKIP pkgname = vim-lightline-git diff --git a/vim-lightline-git/PKGBUILD b/vim-lightline-git/PKGBUILD index dfa3b36..796345e 100644 --- a/vim-lightline-git/PKGBUILD +++ b/vim-lightline-git/PKGBUILD @@ -6,7 +6,7 @@ _name='vim-lightline' pkgname="${_name}-git" -pkgver= +pkgver=r515.583138f pkgrel=1 pkgdesc='A light and configurable statusline/tabline for Vim' arch=('any') @@ -18,13 +18,12 @@ provides=('vim-lightline-git') conflicts=('vim-lightline' 'vim-lightline-git') replaces=('vim-lightline') install='lightline.install' -# source=("git://github.com/itchyny/lightline.vim.git") source=("${_name}::${url//https/git}") md5sums=('SKIP') pkgver() { cd "${srcdir}/${_name}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() {