# Maintainer: Erich Eckner # Contributor: Abdó Roig-Maranges pkgname=python-jwcrypto _pkgname=${pkgname#*-} pkgver=1.1.0 pkgrel=35 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=('c7530f68d74247f23ad2d76def257f4f0091203a22d39f248f4a15363b17bdf79699b96775cfb7f909b5b0a99ed1dd73ff5ae30ca8bc41662f1be38933c9f3c1') 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" }