summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77c2661c48635d7a6baaa73c35018a96e73b70ff (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
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=python-slidge-git
pkgver=0.1.0alpha1.r1122.g1e9f9d0
pkgrel=1
pkgdesc='XMPP puppeteer gateway library in python'
arch=('x86_64' 'armv7h' 'aarch64')
url="https://git.sr.ht/~nicoco/slidge"
license=('AGPL3')
depends=('python' 'python-slixmpp' 'python-aiohttp' 'python-qrcode' 'python-magic' 'python-configargparse' 'python-pillow' 'python-pickle-secure')
makedepends=('git' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools')
provides=("python-slidge=$pkgver")
conflicts=('python-slidge')
source=('git+https://git.sr.ht/~nicoco/slidge')
sha256sums=('SKIP')

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

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

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