diff options
author | Erich Eckner <git@eckner.net> | 2020-05-23 21:15:29 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-05-23 21:15:29 +0200 |
commit | 0994f466afa832bae64b251fc139cd9f34bfaf85 (patch) | |
tree | b3596c8d931da76b73bd6d44fec7bb82548369f7 /python-jwcrypto | |
parent | 466888d3dfe13bcffbbe3b16406da83b48f6f0e6 (diff) | |
download | archlinuxewe-0994f466afa832bae64b251fc139cd9f34bfaf85.tar.xz |
python-jwcrypto new
Diffstat (limited to 'python-jwcrypto')
-rw-r--r-- | python-jwcrypto/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/python-jwcrypto/PKGBUILD b/python-jwcrypto/PKGBUILD new file mode 100644 index 000000000..b8e36ec06 --- /dev/null +++ b/python-jwcrypto/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Abdó Roig-Maranges <abdo.roig@gmail.com> + +pkgname=python-jwcrypto +_pkgname=${pkgname#*-} +pkgver=0.7.0 +pkgrel=1 +pkgdesc="Python implementation of JWK, JWS, JWE specifications" +arch=("any") +url="https://github.com/latchset/jwcrypto" +license=("LGPL3") +makedepends=("python-setuptools") +depends=("python-cryptography") +source=("$_pkgname-$pkgver.tar.gz::https://github.com/latchset/$_pkgname/archive/v$pkgver.tar.gz") +sha256sums=('a7e03d102bb9e5fe886bbb7048099a7adec4c3be8f149bca32c2a205cfe1dfa7') + +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" +} |