makedeb


neofetch-git 1ccd5d9f2021.12.10-2


A CLI system information tool written in BASH that supports displaying images.

Click here to go back to the commit logs for neofetch-git.

Commit:


Hash: a3ae022db6ce493ab2caca24cc58e4347add87e5

Message: minor fix

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7557d92..65ad0c9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,31 +1,44 @@
-generated-by = makedeb-makepkg
-
-pkgbase = neofetch-git
-	pkgdesc = A CLI system information tool written in BASH that supports displaying images.
-	pkgver = 7.1.0.r147.gb3e21d89
-	pkgrel = 1
-	url = https://github.com/dylanaraps/neofetch
-	arch = any
-	license = MIT
-	makedepends = git
-	depends = bash
-	optdepends = feh: Wallpaper Display
-	optdepends = imagemagick: Image cropping Thumbnail creation Take a screenshot
-	optdepends = nitrogen: Wallpaper Display
-	optdepends = w3m-img: Display Images
-	optdepends = catimg: Display Images
-	optdepends = jp2a: Display Images
-	optdepends = ueberzug: Display Images
-	optdepends = sixel: Display Images Note-sixel works only if the terminal supports it
-	optdepends = libcaca0: Display Images
-	optdepends = xdotool: See https://github.com/dylanaraps/neofetch/wiki/Images-in-the-terminal
-	optdepends = xorg-xdpyinfo: Resolution detection (Single Monitor)
-	optdepends = xorg-xprop: Desktop Environment and Window Manager
-	optdepends = xorg-xrandr: Resolution detection (Multi Monitor + Refresh rates)
-	optdepends = xorg-xwininfo: See https://github.com/dylanaraps/neofetch/wiki/Images-in-the-terminal
-	provides = neofetch
-	conflicts = neofetch
-	source = neofetch-git::git+https://github.com/dylanaraps/neofetch.git
-	md5sums = SKIP
-
+generated-by = makedeb
 pkgname = neofetch-git
+pkgbase = neofetch-git
+pkgdesc = A CLI system information tool written in BASH that supports displaying images.
+pkgrel = 2
+pkgver = 1ccd5d9f2021.12.10
+url = https://github.com/dylanaraps/neofetch
+arch = any
+conflicts = neofetch
+depends = bash
+license = MIT
+makedepends = git
+optdepends = feh: Wallpaper Display
+optdepends = imagemagick: Image cropping  Thumbnail creation  Take a screenshot
+optdepends = nitrogen: Wallpaper Display
+optdepends = w3m-img: Display Images
+optdepends = catimg: Display Images
+optdepends = jp2a: Display Images
+optdepends = ueberzug: Display Images
+optdepends = sixel: Display Images Note-sixel works only if the terminal supports it
+optdepends = libcaca0: Display Images
+optdepends = xdotool: See https://github.com/dylanaraps/neofetch/wiki/Images-in-the-terminal
+optdepends = xorg-xdpyinfo: Resolution detection (Single Monitor)
+optdepends = xorg-xprop: Desktop Environment and Window Manager
+optdepends = xorg-xrandr: Resolution detection (Multi Monitor + Refresh rates)
+optdepends = xorg-xwininfo: See https://github.com/dylanaraps/neofetch/wiki/Images-in-the-terminal
+provides = neofetch
+source = neofetch-git::git+https://github.com/dylanaraps/neofetch.git
+md5sums = SKIP
+makedepends = git
+optdepends = feh: Wallpaper Display
+optdepends = imagemagick: Image cropping  Thumbnail creation  Take a screenshot
+optdepends = nitrogen: Wallpaper Display
+optdepends = w3m-img: Display Images
+optdepends = catimg: Display Images
+optdepends = jp2a: Display Images
+optdepends = ueberzug: Display Images
+optdepends = sixel: Display Images Note-sixel works only if the terminal supports it
+optdepends = libcaca0: Display Images
+optdepends = xdotool: See https://github.com/dylanaraps/neofetch/wiki/Images-in-the-terminal
+optdepends = xorg-xdpyinfo: Resolution detection (Single Monitor)
+optdepends = xorg-xprop: Desktop Environment and Window Manager
+optdepends = xorg-xrandr: Resolution detection (Multi Monitor + Refresh rates)
+optdepends = xorg-xwininfo: See https://github.com/dylanaraps/neofetch/wiki/Images-in-the-terminal
diff --git a/PKGBUILD b/PKGBUILD
index c460bfe..7bff8a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
 # Maintainer: only_vip <onlyme_vip@protonmail.com>
 pkgname=neofetch-git
 _pkgname=neofetch
-pkgver=7.1.0.r147.gb3e21d89
-pkgrel=1
+pkgver=1ccd5d9f2021.12.10
+pkgrel=2
 pkgdesc="A CLI system information tool written in BASH that supports displaying images."
 arch=('any')
 url="https://github.com/dylanaraps/${_pkgname}"
@@ -33,7 +33,10 @@ md5sums=('SKIP')
 
 pkgver() {
   cd ${pkgname}
-  git describe --tags --long | sed -r -e 's:^[^0-9]*::;s,([^-]*-g),r\1,;s,[-_],.,g'
+    _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'
 }
 
 package() {