summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLingMan2021-06-27 15:34:04 +0200
committerLingMan2021-06-27 15:39:45 +0200
commit17dfe8ba3154191c5aca9b297ca826d4b6af22d7 (patch)
tree81a3c95c17cb1ef4e5ac4fdd57ba5d72510f4ecc /PKGBUILD
downloadaur-python2-service-identity.tar.gz
AUR submission after python2 support was dropped from the main repos in
https://github.com/archlinux/svntogit-packages/commit/4b36dd740b8b39bd18c447e5cdbdcb8c70ad6d2d
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8bdb05b9337
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+
+pkgname=python2-service-identity
+pkgver=21.1.0
+pkgrel=1
+pkgdesc="Service identity verification for pyOpenSSL"
+arch=('any')
+license=('MIT')
+url="https://github.com/pyca/service-identity"
+depends=('python2-attrs' 'python2-pyasn1-modules' 'python2-pyasn1' 'python2-cryptography' 'python2-six')
+makedepends=('python2-setuptools' 'python2-idna')
+checkdepends=('python2-pytest-runner')
+optdepends=('python2-idna: for Internationalized Domain Names support')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pyca/service-identity/archive/refs/tags/$pkgver.tar.gz")
+sha512sums=('6375bc5e8329118b2beb163ffffecc1479839e4e98173576e4737deebcc4c057ac357315976d3f53a280defd4e2c1f6b74e9604ec1aa94144240c2fb4bf07461')
+
+build() {
+ cd service-identity-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd service-identity-$pkgver
+ python2 setup.py pytest
+}
+
+package() {
+ cd service-identity-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}