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 34 35 36 37 38 39 40 41 42
|
# $Id$
# Maintainer: Damir Jelić <poljar@termina.org.uk>
pkgbase=matrix-nio
pkgname='python-matrix-nio-git'
pkgver=0.25.2
_pkgver=0.25.2
pkgrel=1
pkgdesc='python no-IO library for the matrix chat protocol'
arch=('any')
url='https://github.com/poljar/matrix-nio'
license=('ISC')
makedepends=('python-setuptools')
conflicts=('python-matrix-nio')
provides=('python-matrix-nio')
depends=('python' 'python-olm' 'python-h11' 'python-h2'
'python-jsonschema' 'python-logbook'
'python-peewee' 'python-atomicwrites'
'python-pycryptodome' 'python-unpaddedbase64')
checkdepends=()
source=("$pkgbase-$pkgver.tar.gz")
sha512sums=('SKIP')
pkgver() {
cd "$pkgbase-$_pkgver"
git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare() {
cd "$pkgbase-$_pkgver"
dephell deps convert --from pyproject.toml --to setup.py
}
build() {
cd "$pkgbase-$_pkgver"
python setup.py build
}
package() {
cd "$pkgbase-$_pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|