Package Details: synadm-git 0.30.r1.gf13cf1d-1

Git Clone URL: https://aur.archlinux.org/synadm-git.git (read-only, click to copy)
Package Base: synadm-git
Description: CLI frontend to Matrix-Synapse admin APIs
Upstream URL: https://github.com/JOJ0/synadm
Licenses: GPL3
Conflicts: synadm
Provides: synadm=0.30.r1.gf13cf1d
Submitter: BubuIIC
Maintainer: BubuIIC
Last Packager: BubuIIC
Votes: 1
Popularity: 0.143238
First Submitted: 2021-02-20 17:25
Last Updated: 2021-07-05 22:55

Latest Comments

xiretza commented on 2021-07-06 11:51

Ah yes, good call. Thanks!

BubuIIC commented on 2021-07-05 22:56

Thanks! I included all you suggestions with an additional --tags for the git describe call if upstream ever uses non-annotated tags. (I've been bitten by this before.)

xiretza commented on 2021-07-03 09:19

Requires makedepends=('git'). It should also set provides/conflicts for synadm, and ideally update pkgver() to include tags so a versioned provides can be used. Here's a complete patch:

diff --git a/PKGBUILD b/PKGBUILD
index 3ab2aab..83f0d27 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,14 @@

 _pkgbase=synadm
 pkgname=${_pkgbase}-git
-pkgver=r179.ea5c9ec
+pkgver=0.30.r1.gf13cf1d
 pkgrel=1
 pkgdesc="CLI frontend to Matrix-Synapse admin APIs"
 url="https://github.com/JOJ0/synadm"
 depends=('python' 'python-click' 'python-requests' 'python-yaml' 'python-tabulate' 'python-click-option-group')
-makedepends=('python3' 'python-setuptools')
+makedepends=('git' 'python3' 'python-setuptools')
+provides=("$_pkgbase=$pkgver")
+conflicts=("$_pkgbase")
 license=('GPL3')
 arch=('any')
 source=("synadm::git+https://github.com/JOJ0/synadm.git")
@@ -15,7 +17,7 @@ sha256sums=('SKIP')

 pkgver() {
   cd "$srcdir/synadm"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }

 build() {