Date: Wednesday, February 22, 2023 @ 08:43:56
  Author: felixonmars
Revision: 1403420

upgpkg: python-swiftclient 4.2.0-1

Modified:
  python-swiftclient/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-22 08:43:40 UTC (rev 1403419)
+++ PKGBUILD    2023-02-22 08:43:56 UTC (rev 1403420)
@@ -2,8 +2,9 @@
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 
 pkgname=python-swiftclient
-pkgver=4.1.0
-pkgrel=2
+pkgver=4.2.0
+_commit=7bd09510864e92265eb1e797ba5bba973e0ceb50
+pkgrel=1
 pkgdesc="An SDK for building applications to work with OpenStack"
 arch=('any')
 url="https://docs.openstack.org/python-swiftclient";
@@ -10,27 +11,23 @@
 license=('Apache')
 depends=('python-six' 'python-requests')
 optdepends=('python-keystoneclient: for Auth versions 2.0 and 3 support')
-makedepends=('python-setuptools' 'python-pbr')
+makedepends=('git' 'python-setuptools' 'python-pbr')
 checkdepends=('python-stestr' 'python-keystoneauth1' 'python-keystoneclient')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/python-swiftclient/archive/$pkgver.tar.gz";)
-sha512sums=('39a58a01e25852919d989f4ef400ee58a9aae8c71ccbbb1d89ce3c908798c94077881b3065b0e8db684e7ffa704c0ba7da16c66ee5e41d0d7cc759eea26a97b5')
+source=("git+https://github.com/openstack/python-swiftclient.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-prepare() {
-  export PBR_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/python-swiftclient-$pkgver
+  cd python-swiftclient
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/python-swiftclient-$pkgver
+  cd python-swiftclient
   stestr run
 }
 
 package() {
-  cd "$srcdir"/python-swiftclient-$pkgver
+  cd python-swiftclient
   python setup.py install --root="$pkgdir" --optimize=1
 }
 

Reply via email to