makedeb


fzf-tab-completion-git 1edbccc22021.11.13-2


Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.)

Click here to go back to the commit logs for fzf-tab-completion-git.

Commit:


Hash: 2317245c62d1c5354dfb780a9cccf92eeac639e5

Message: minor fix

Diff


diff --git a/.SRCINFO b/.SRCINFO
index b423d7a..280560b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,21 @@
-generated-by = makedeb-makepkg
-
-pkgbase = fzf-tab-completion-git
-	pkgdesc = Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.)
-	pkgver = 304.774a6ff
-	pkgrel = 1
-	url = https://github.com/lincheney/fzf-tab-completion
-	arch = i686
-	arch = x86_64
-	license = GPL3
-	makedepends = rustc
-	makedepends = cargo
-	depends = rl-custom-function
-	depends = fzf
-	provides = fzf-tab-completion
-	conflicts = fzf-tab-completion
-	source = fzf-tab-completion::git+https://github.com/lincheney/fzf-tab-completion.git
-	sha256sums = SKIP
-
+generated-by = makedeb
 pkgname = fzf-tab-completion-git
+postinst = fzf-tab-completion-git.postinst
+pkgbase = fzf-tab-completion-git
+pkgdesc = Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.)
+pkgrel = 2
+pkgver = 1edbccc22021.11.13
+url = https://github.com/lincheney/fzf-tab-completion
+arch = i686
+arch = amd64
+conflicts = fzf-tab-completion
+depends = rl-custom-function
+depends = fzf
+license = GPL3
+makedepends = rustc
+makedepends = cargo
+provides = fzf-tab-completion
+source = fzf-tab-completion::git+https://github.com/lincheney/fzf-tab-completion.git
+sha256sums = SKIP
+makedepends = rustc
+makedepends = cargo
diff --git a/PKGBUILD b/PKGBUILD
index 52d1d0e..df43e22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
 # Maintainer: only_vip <onlyme_vip@protonmail.com>
 pkgname=fzf-tab-completion-git
 _pkgname=${pkgname%-git}
-pkgver=304.774a6ff
-pkgrel=1
+pkgver=1edbccc22021.11.13
+pkgrel=2
 pkgdesc="Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.)"
-arch=('i686' 'x86_64')
+arch=('i686' 'amd64')
 url="https://github.com/lincheney/fzf-tab-completion"
 license=('GPL3')
 depends=('rl-custom-function' 'fzf')
@@ -18,7 +18,11 @@ sha256sums=('SKIP')
 
 pkgver() {
   cd "${srcdir}/${_pkgname}"
-  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  #printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+    _always=$(git describe --always | sed -e 's:-:.:g' -e 's:v::') # always is mobile, and switches between numbers and letters, can't use it for versioning
+    _commits=$(git rev-list --count HEAD | sed 's:-:.:g') # total commits is the most sane way of getting incremental pkgver
+    _date=$(git log -1 --date=short --pretty=format:%cd)
+    printf "%s%s%s\n" "${_commits}" "${_always}" "${_date}" | sed -e 's:-:.:g'  -e 's:_:.:g'
 }
 
 build() {