[arch-commits] Commit in (4 files)

Jonas Witschel diabonas at archlinux.org
Mon Nov 16 18:36:04 UTC 2020


    Date: Monday, November 16, 2020 @ 18:36:04
  Author: diabonas
Revision: 755507

Add package python-oscrypto (dependency of python-python-pkcs11)

Added:
  python-oscrypto/
  python-oscrypto/repos/
  python-oscrypto/trunk/
  python-oscrypto/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Added: python-oscrypto/trunk/PKGBUILD
===================================================================
--- python-oscrypto/trunk/PKGBUILD	                        (rev 0)
+++ python-oscrypto/trunk/PKGBUILD	2020-11-16 18:36:04 UTC (rev 755507)
@@ -0,0 +1,28 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-oscrypto
+pkgver=1.2.1
+pkgrel=2
+pkgdesc='Compiler-free Python crypto library backed by the OS'
+arch=('any')
+url='https://github.com/wbond/oscrypto'
+license=('MIT')
+depends=('python' 'python-asn1crypto')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('bf858f59bf6e54d1ac962df4b90eb674844e50f47b217d73d94b05e27280b78671dc04f4211276c04e71b48f92b446bc11f964b7223def24f5d0d878166547f3')
+
+build() {
+    cd "${pkgname#python-}-$pkgver"
+    python setup.py build
+}
+
+check() {
+	cd "${pkgname#python-}-$pkgver"
+	python setup.py test
+}
+
+package() {
+    cd "${pkgname#python-}-$pkgver"
+    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+    install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list