diff options
author | Erich Eckner <git@eckner.net> | 2023-05-08 22:48:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-05-08 22:49:17 +0200 |
commit | 1d0482d78344df3dcc9c1684e6e57a0a9ba04a4d (patch) | |
tree | 3868560b0b9739c164bf9b1dc2e4e62dab0bacf2 /cssh/PKGBUILD | |
parent | 1e5008fcf405e61ab5b2f5d7dcb382f051ccb091 (diff) | |
download | archlinuxewe-1d0482d78344df3dcc9c1684e6e57a0a9ba04a4d.tar.xz |
cssh: fix pkgver()
Diffstat (limited to 'cssh/PKGBUILD')
-rw-r--r-- | cssh/PKGBUILD | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/cssh/PKGBUILD b/cssh/PKGBUILD index 339d9dee4..5c3acee94 100644 --- a/cssh/PKGBUILD +++ b/cssh/PKGBUILD @@ -1,9 +1,9 @@ # Maintainer: Erich Eckner <arch at eckner dot net> pkgname=cssh -pkgver=0.r113.7763db3 -_commit=${pkgver##*.} -pkgrel=4 +pkgver=0.0.1+9+g7763db3 +_commit=${pkgver##*+g} +pkgrel=1 arch=('i686' 'pentium4' 'x86_64') pkgdesc='Parallel ssh client written in C' url='https://github.com/andreasbaumann/cssh' @@ -20,16 +20,11 @@ sha512sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" - _rev=$( - git rev-parse --short "${_commit}" - ) - _rev_count=$( - git rev-list "${_rev}" --count - ) - printf '%s.r%s.%s' \ - '0' \ - "${_rev_count}" \ - "${_rev}" + git describe --tags "${_commit}" \ + | sed ' + s/^v// + y/-/+/ + ' } build() { |