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
Submitter: BubuIIC
Maintainer: BubuIIC
Last Packager: BubuIIC
Votes: 1
Popularity: 0.000000
First Submitted: 2021-02-20 17:25 (UTC)
Last Updated: 2022-07-16 11:29 (UTC)

Latest Comments

BubuIIC commented on 2022-07-16 11:29 (UTC)

@Ta180m: thanks, fixed!

dodecahedron commented on 2022-07-15 01:32 (UTC)

This package needs to have python-dnspython added as a dependency or else I get this error:

$ synadm
Traceback (most recent call last):
  File "/usr/bin/synadm", line 33, in <module>
    sys.exit(load_entry_point('synadm==0.35', 'console_scripts', 'synadm')())
  File "/usr/bin/synadm", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/synadm/cli/__init__.py", line 30, in <module>
    import dns.resolver
ModuleNotFoundError: No module named 'dns'

xiretza commented on 2021-07-06 11:51 (UTC)

Ah yes, good call. Thanks!

BubuIIC commented on 2021-07-05 22:56 (UTC)

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 (UTC) (edited on 2021-07-03 09:33 (UTC) by xiretza)

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() {