archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-magic-wormhole-transit-relay / trunk / PKGBUILD
blob95fc98c7befd6970c31dbbb035a18c88ccc8ef19
1 # Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
3 pkgname=python-magic-wormhole-transit-relay
4 pkgver=0.2.1
5 pkgrel=6
6 pkgdesc="transit Relay server for Magic-Wormhole"
7 arch=('any')
8 url="https://github.com/magic-wormhole/magic-wormhole-transit-relay"
9 license=('MIT')
10 depends=('python-twisted' 'python-autobahn')
11 makedepends=('python-setuptools')
12 checkdepends=('python-mock')
13 source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/magic-wormhole/magic-wormhole-transit-relay/archive/refs/tags/${pkgver}.tar.gz")
14 sha512sums=('dcc309de800d9023ff106ea7b67da4814006ee50e517570c046f2dff20573306b3d5f7c4e227186b2b6f8ff7cb71e02e41499766badf299d859a0e5628066162')
15 b2sums=('ffb05c716a35e688801150c3fd6de28cf557ed346091400f9eeb9335b6815425624e70d61f54be8f0a1e8bb15e874528f7cfcef1e8f0a2f8d3cd4285adb1db3a')
17 build() {
18         cd "${pkgname#python-}-${pkgver}"
19         python setup.py build
22 check() {
23         cd "${pkgname#python-}-${pkgver}"
24         python setup.py test
27 package() {
28         cd "${pkgname#python-}-${pkgver}"
29         python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
30         install -vDm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
31         install -vDm 644 docs/*.md -t "${pkgdir}/usr/share/doc/${pkgname}"