makedeb


nnn-git 16b9f8f32022.04.20-2


The fastest terminal file manager ever written.

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

Commit:


Hash: d1835b97f83508f7ff6e65c3b5df5e7d43ac0123

Message: minor fix

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 869b4ee..e6ea324 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,31 +1,41 @@
-generated-by = makedeb-makepkg
-
-pkgbase = nnn-git
-	pkgdesc = The fastest terminal file manager ever written.
-	pkgver = 4.4.86.gd38841d5
-	pkgrel = 2
-	url = https://github.com/jarun/nnn
-	arch = x86_64
-	license = BSD
-	makedepends = git
-	depends = bash
-	depends = libreadline-dev
-	depends = libncursesw5-dev
-	depends = pkg-config
-	optdepends = atool: for more archive formats
-	optdepends = libarchive: for more archive formats
-	optdepends = zip: for zip archive format
-	optdepends = unzip: for zip archive format
-	optdepends = trash-cli: to trash files
-	optdepends = sshfs: mount remotes
-	optdepends = rclone: mount remotes
-	optdepends = fuse2: unmount remotes
-	optdepends = xdg-utils: desktop opener
-	optdepends = nerd-font: any one of the nerd font for icons
-	optdepends = plugins: refer https://github.com/jarun/nnn/tree/master/plugins#installation
-	provides = nnn
-	conflicts = nnn
-	source = git+https://github.com/jarun/nnn.git
-	md5sums = SKIP
-
+generated-by = makedeb
 pkgname = nnn-git
+pkgbase = nnn-git
+pkgdesc = The fastest terminal file manager ever written.
+pkgrel = 2
+pkgver = 16b9f8f32022.04.20
+url = https://github.com/jarun/nnn
+arch = amd64
+conflicts = nnn
+depends = bash
+depends = libreadline-dev
+depends = libncursesw5-dev
+depends = pkg-config
+license = BSD
+makedepends = git
+optdepends = atool: for more archive formats
+optdepends = libarchive: for more archive formats
+optdepends = zip: for zip archive format
+optdepends = unzip: for zip archive format
+optdepends = trash-cli: to trash files
+optdepends = sshfs: mount remotes
+optdepends = rclone: mount remotes
+optdepends = fuse2: unmount remotes
+optdepends = xdg-utils: desktop opener
+optdepends = nerd-font: any one of the nerd font for icons
+optdepends = plugins: refer https://github.com/jarun/nnn/tree/master/plugins#installation
+provides = nnn
+source = nnn::git+https://github.com/jarun/nnn.git
+md5sums = SKIP
+makedepends = git
+optdepends = atool: for more archive formats
+optdepends = libarchive: for more archive formats
+optdepends = zip: for zip archive format
+optdepends = unzip: for zip archive format
+optdepends = trash-cli: to trash files
+optdepends = sshfs: mount remotes
+optdepends = rclone: mount remotes
+optdepends = fuse2: unmount remotes
+optdepends = xdg-utils: desktop opener
+optdepends = nerd-font: any one of the nerd font for icons
+optdepends = plugins: refer https://github.com/jarun/nnn/tree/master/plugins#installation
diff --git a/PKGBUILD b/PKGBUILD
index ecb3c8e..a4c5411 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
 # Maintainer: only_vip <onlyme_vip@protonmail.com>
 pkgname=nnn-git
 _pkgname=nnn
-pkgver=4.4.86.gd38841d5
+pkgver=16b9f8f32022.04.20
 pkgrel=2
 pkgdesc="The fastest terminal file manager ever written."
-arch=('x86_64')
+arch=('amd64')
 url="https://github.com/jarun/${_pkgname}"
 license=(BSD)
 depends=('bash' 'libreadline-dev' 'libncursesw5-dev' 'pkg-config')
@@ -25,12 +25,16 @@ makedepends=(git)
 provides=("${_pkgname}")
 conflicts=("${_pkgname}")
 # replaces=("${_pkgname}")
-source=("git+${url}.git")
+source=("${_pkgname}::git+${url}.git")
 md5sums=('SKIP')
 
 pkgver() {
   cd nnn
-  git describe --long --tags | sed -e 's/v//g;s/-/./g'
+  #git describe --long --always | sed -e 's/v//g;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'
 }
 
 build() {