summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 017751b81496e43233f612b7505a1d650c18aca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>

_pkgbase=synadm
pkgname=${_pkgbase}-git
pkgver=0.48.r5.g02a3870
pkgrel=1
pkgdesc="CLI frontend to Matrix-Synapse admin APIs"
url="https://codeberg.org/synadm/synadm"
depends=('python' 'python-click' 'python-requests' 'python-yaml' 'python-tabulate' 'python-click-option-group' 'python-dnspython')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
optdepends=('python-beautifulsoup4: docs scraping')
provides=("$_pkgbase=$pkgver")
conflicts=("$_pkgbase")
license=('GPL-3.0-or-later')
arch=('any')
source=("git+https://codeberg.org/synadm/synadm.git")
sha256sums=('SKIP')

pkgver() {
  cd synadm
  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd synadm
  python -m build --wheel --no-isolation
}

package() {
  cd synadm
  python -m installer --destdir="$pkgdir" dist/*.whl
}