-
-
Save Ferdi265/12e138aa64d166e0b38588c71eb3e474 to your computer and use it in GitHub Desktop.
Add automatic package version to vim-lightline-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index e640bbc..028ca2b 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -3,7 +3,7 @@ | |
# Contributor: | |
pkgname=vim-lightline-git | |
-pkgver=latest | |
+pkgver=r626.3afa010 | |
pkgrel=1 | |
pkgdesc='A light and configurable statusline/tabline for Vim' | |
arch=('any') | |
@@ -15,6 +15,11 @@ install='vimdoc.install' | |
source=("git://github.com/itchyny/lightline.vim.git") | |
md5sums=('SKIP') | |
+pkgver() { | |
+ cd "lightline.vim" | |
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" | |
+} | |
+ | |
package() { | |
cd "lightline.vim" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment