blob: 9f34998b3c24d380a72b036e4149119db87ab671 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Abdó Roig-Maranges <abdo.roig@gmail.com>
pkgname=python-jwcrypto
_pkgname=${pkgname#*-}
pkgver=1.0.0
pkgrel=1
pkgdesc="Python implementation of JWK, JWS, JWE specifications"
arch=("any")
url="https://github.com/latchset/jwcrypto"
license=("LGPL3")
depends=(
'python<3.10'
'python>=3.9')
makedepends=(
'python-setuptools')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/latchset/$_pkgname/archive/v$pkgver.tar.gz")
sha512sums=('12d270219d289041098f875f5b2b0773ffbf9044996a6189b827cafbf3e5dccfc103915275b1a11dce2d50e3510510eea476b024d19cf97fd7c66c25de5b3dbf')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
rm -Rf "${pkgdir}/usr/share/doc"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|