diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b32cfdeb53e1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-pyhanko-certvalidator + pkgdesc = Validates X.509 certificates and paths + pkgver = 0.19.5 + pkgrel = 1 + url = https://github.com/MatthiasValvekens/certvalidator + arch = any + license = MIT + makedepends = python-setuptools + depends = python-requests + depends = python-asn1crypto + depends = python-oscrypto + depends = python-cryptography + depends = python-uritools + source = pyhanko-certvalidator-0.19.5.tar.gz::https://files.pythonhosted.org/packages/source/p/pyhanko-certvalidator/pyhanko-certvalidator-0.19.5.tar.gz + sha256sums = 770111bd9f1654e250b5f6c78d91346579c2ec1a1af4ba40a50467e6bc546840 + +pkgname = python-pyhanko-certvalidator diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a66b7325d91d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com > +_name=pyhanko-certvalidator +pkgname='python-pyhanko-certvalidator' +pkgver=0.19.5 +pkgrel=1 +pkgdesc="Validates X.509 certificates and paths" +url="https://github.com/MatthiasValvekens/certvalidator" +license=('MIT') +arch=('any') +depends=('python-requests' 'python-asn1crypto' 'python-oscrypto' 'python-cryptography' + 'python-uritools') +makedepends=('python-setuptools') +source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-$pkgver.tar.gz") +sha256sums=('770111bd9f1654e250b5f6c78d91346579c2ec1a1af4ba40a50467e6bc546840') + +build() { + cd "$srcdir/${_name}-${pkgver}" + python setup.py build +} + +package() { + cd "$srcdir/${_name}-${pkgver}/" + python setup.py install --skip-build --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |