summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac92c91ab3720a7f131791a6dd13958a8919594d (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
34
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Based on python-aiorpcx https://www.archlinux.org/packages/community/any/python-aiorpcx/ by Santiago Torres-Arias <santiago@archlinux.org>

pkgname='python-aiorpcx-git'
_gitname='aiorpcX'
pkgver=0.18.4.r0.gbd2185a
pkgrel=1
pkgdesc="A generic asyncio library implementation of RPC suitable for an application that is a client, server or both."
url="https://github.com/kyuupichan/aiorpcX/"
arch=('any')
license=('MIT')
provides=('python-aiorpcx')
conflicts=('python-aiorpcx')
depends=('python>=3.6' 'python-attrs')
makedepends=('python-setuptools' 'git')
optdepends=('python-websockets')
source=("git://github.com/kyuupichan/aiorpcX.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
    
build() {
  cd "${srcdir}/${_gitname}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_gitname}"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -D -m644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}