summaryrefslogtreecommitdiff
path: root/python-jwcrypto/PKGBUILD
blob: b8e36ec06190ec3b233164134437342008882dbb (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
# 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"
}