Date: Friday, April 7, 2023 @ 07:24:55
Author: felixonmars
Revision: 1440811
archrelease: copy trunk to community-staging-any
Added:
python-sshpubkeys/repos/community-staging-any/
python-sshpubkeys/repos/community-staging-any/PKGBUILD
(from rev 1440808, python-sshpubkeys/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-sshpubkeys/repos/community-staging-any/PKGBUILD (from rev
1440808, python-sshpubkeys/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 07:24:55 UTC (rev 1440811)
@@ -0,0 +1,32 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: Drew DeVault <[email protected]>
+
+_pkgname=sshpubkeys
+pkgname=python-sshpubkeys
+pkgver=3.3.1
+pkgrel=4
+pkgdesc='OpenSSH public key parser for Python'
+arch=(any)
+url='https://github.com/ojarva/python-sshpubkeys'
+license=(BSD)
+depends=(python-ecdsa python-cryptography)
+makedepends=(python-setuptools)
+source=("https://files.pythonhosted.org/packages/source/s/sshpubkeys/$_pkgname-$pkgver.tar.gz")
+sha256sums=('3020ed4f8c846849299370fbe98ff4157b0ccc1accec105e07cfa9ae4bb55064')
+
+build() {
+ cd $_pkgname-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+ # Upstream MANIFEST.in uses `graft tests`, so pyc files in tests will be
listed in SOURCES.txt
+ PYTHONDONTWRITEBYTECODE=1 python -m unittest tests
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}