# Maintainer: Erich Eckner # Contributor: Abdó Roig-Maranges pkgname=python-jwcrypto _pkgname=${pkgname#*-} pkgver=1.4.2 pkgrel=2 pkgdesc="Python implementation of JWK, JWS, JWE specifications" arch=("any") url="https://github.com/latchset/jwcrypto" license=("LGPL3") depends=( 'python<3.12' 'python>=3.11') makedepends=( 'python-setuptools') source=("$_pkgname-$pkgver.tar.gz::https://github.com/latchset/$_pkgname/archive/v$pkgver.tar.gz") sha512sums=('9967e626bc4a13a12ef09bbf3dada589c2c5374f4addff743c3ca9762c66659f59ca2e0f495cda6bc5821b6ed62aae95d478bf14de0acd6b2696bf0e1a9e7a49') 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" }