[arch-commits] Commit in python-oscrypto/repos (community-any community-any/PKGBUILD)
Jonas Witschel
diabonas at archlinux.org
Mon Nov 16 18:36:36 UTC 2020
Date: Monday, November 16, 2020 @ 18:36:36
Author: diabonas
Revision: 755508
archrelease: copy trunk to community-any
Added:
python-oscrypto/repos/community-any/
python-oscrypto/repos/community-any/PKGBUILD
(from rev 755507, python-oscrypto/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: python-oscrypto/repos/community-any/PKGBUILD (from rev 755507, python-oscrypto/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-11-16 18:36:36 UTC (rev 755508)
@@ -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