summaryrefslogtreecommitdiff
path: root/python-jwcrypto/PKGBUILD
blob: 8aa1196fc7a612249f8615c536de9c0b15406017 (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=0.8.0
pkgrel=2
pkgdesc="Python implementation of JWK, JWS, JWE specifications"
arch=("any")
url="https://github.com/latchset/jwcrypto"
license=("LGPL3")
makedepends=(
  'python-setuptools')
depends=(
  'python>=3.9'
  'python<3.10'
  'python-cryptography>=2.3')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/latchset/$_pkgname/archive/v$pkgver.tar.gz")
sha512sums=('784134d27ff7abd31e1069763969513ed45f81fd2c242b7ff7036413c35ef374d535eae0123f5561a8e4eb2630cee40056d1c66454288e1310c4cbedecaac210')

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"
}