[arch-commits] Commit in python-smbprotocol/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Sat Mar 27 10:35:13 UTC 2021


    Date: Saturday, March 27, 2021 @ 10:35:13
  Author: archange
Revision: 905044

upgpkg: python-smbprotocol 1.5.0-1

Also switch to upstream signed sources

Modified:
  python-smbprotocol/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-27 10:07:07 UTC (rev 905043)
+++ PKGBUILD	2021-03-27 10:35:13 UTC (rev 905044)
@@ -2,7 +2,7 @@
 
 _pkg=smbprotocol
 pkgname=python-${_pkg}
-pkgver=1.4.0
+pkgver=1.5.0
 pkgrel=1
 pkgdesc="SMBv2 and v3 client"
 arch=(any)
@@ -9,26 +9,29 @@
 url="https://github.com/jborean93/smbprotocol"
 license=(MIT)
 depends=(python-cryptography python-pyspnego python-six)
-makedepends=(python-setuptools)
+makedepends=(git python-setuptools)
 checkdepends=(python-pytest python-pytest-mock python-gssapi)
 optdepends=('python-gssapi: Kerberos support')
-# No tests in pypi tarball
-#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('f80ae1ba742f7336cc882914faa1ee65ef247278bf898b995cc0ecfeaa830847')
+# tag are not signed, commits only
+#_tag=9a141ec4e1d2a60819c9c560a9629ef90e5a932d # git rev-parse v${pkgver}
+#source=(git+${url}.git#tag=${_tag}?signed)
+_commit=9a141ec4e1d2a60819c9c560a9629ef90e5a932d
+source=(git+${url}.git#commit=${_commit}?signed)
+sha256sums=(SKIP)
+validpgpkeys=(A03A0E13C2EFFD384B1EC39A2AAC89085FBBDAB5) # Jordan Borean <jborean93 at gmail.com>
 
 build() {
-  cd ${_pkg}-${pkgver}
+  cd ${_pkg}
   python setup.py build
 }
 
 check() {
-  cd ${_pkg}-${pkgver}
+  cd ${_pkg}
   py.test -v
 }
 
 package() {
-  cd ${_pkg}-${pkgver}
+  cd ${_pkg}
   python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
   install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }



More information about the arch-commits mailing list