Date: Saturday, April 8, 2023 @ 12:37:59
Author: felixonmars
Revision: 1442331
archrelease: copy trunk to community-staging-any
Added:
python-smbprotocol/repos/community-staging-any/
python-smbprotocol/repos/community-staging-any/PKGBUILD
(from rev 1442330, python-smbprotocol/trunk/PKGBUILD)
python-smbprotocol/repos/community-staging-any/keys/
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-smbprotocol/repos/community-staging-any/PKGBUILD (from rev
1442330, python-smbprotocol/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 12:37:59 UTC (rev 1442331)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=smbprotocol
+pkgname=python-${_pkg}
+pkgver=1.10.1
+pkgrel=2
+pkgdesc="SMBv2 and v3 client"
+arch=(any)
+url="https://github.com/jborean93/smbprotocol"
+license=(MIT)
+depends=(python-cryptography python-pyspnego python-six)
+makedepends=(git python-setuptools)
+checkdepends=(python-pytest python-pytest-mock python-gssapi)
+optdepends=('python-gssapi: Kerberos support')
+# tags are not signed, commits only
+_commit=1ea33abd58f2e3886220a10888608052bf3608c1 # git rev-parse v${pkgver}
+#source=(git+${url}.git#commit=${_commit}?signed)
+# 1.9.0 was signed using GitHub key
+source=(git+${url}.git#commit=${_commit})
+sha256sums=('SKIP')
+validpgpkeys=(A03A0E13C2EFFD384B1EC39A2AAC89085FBBDAB5) # Jordan Borean
<[email protected]>
+
+build() {
+ cd ${_pkg}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}
+ PYTHONPATH="${PWD}"/src pytest -vv --color=yes
+}
+
+package() {
+ cd ${_pkg}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
--optimize=1
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}