Date: Tuesday, January 31, 2023 @ 20:25:51
  Author: felixonmars
Revision: 1391548

upgpkg: python-configupdater 3.1.1-2

Modified:
  python-configupdater/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:25:43 UTC (rev 1391547)
+++ PKGBUILD    2023-01-31 20:25:51 UTC (rev 1391548)
@@ -2,32 +2,30 @@
 
 pkgname=python-configupdater
 pkgver=3.1.1
-pkgrel=1
+_commit=0539c207ac57ea4fa6a64618e41b987c5865ffd9
+pkgrel=2
 pkgdesc="Parser like ConfigParser but for updating configuration files"
 url="https://github.com/pyscaffold/configupdater";
 license=('MIT')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm')
 checkdepends=('python-pytest-cov')
-source=("https://github.com/pyscaffold/configupdater/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('1e499f87d0ac3d75f32aafe532d7c83b4b86fbaa204fcdbaf7a3dcb5262d936fe027ee0b21d169ef69a0590edbe965a872390b14be274fbb1c893f2d4695b92c')
+source=("git+https://github.com/pyscaffold/configupdater.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd configupdater-$pkgver
+  cd configupdater
   python setup.py build
 }
 
 check() {
-  cd configupdater-$pkgver
+  cd configupdater
   PYTHONPATH="$PWD"/build/lib pytest
 }
 
 package() {
-  cd configupdater-$pkgver
+  cd configupdater
   python setup.py install --root="$pkgdir" --optimize=1
-
   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to