Date: Tuesday, January 31, 2023 @ 20:00:29
  Author: felixonmars
Revision: 1391508

upgpkg: python-iniconfig 2.0.0-2

Modified:
  python-iniconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 19:59:42 UTC (rev 1391507)
+++ PKGBUILD    2023-01-31 20:00:29 UTC (rev 1391508)
@@ -2,31 +2,30 @@
 
 pkgname=python-iniconfig
 pkgver=2.0.0
-pkgrel=1
+_commit=93f5930e668c0d1ddf4597e38dd0dea4e2665e7a
+pkgrel=2
 pkgdesc="brain-dead simple config-ini parsing"
 url="https://github.com/RonnyPfannschmidt/iniconfig";
 license=('MIT')
 arch=('any')
 depends=('python')
-makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
+makedepends=('git' 'python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
 checkdepends=('python-pytest')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz";)
-sha512sums=('e474aaa904070ed79dbbd2b4b572574ebb591b97a4ca0f9c4e4aef437af01035d2f73c48bb670afcec2cd8b7ea093b92d6b0c0eca7ba42033418a2b0e0ac80ad')
+source=("git+https://github.com/RonnyPfannschmidt/iniconfig.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd iniconfig-$pkgver
+  cd iniconfig
   python -m build -nw
 }
 
 check() {
-  cd iniconfig-$pkgver
+  cd iniconfig
   PYTHONPATH="$PWD/src" pytest
 }
 
 package() {
-  cd iniconfig-$pkgver
+  cd iniconfig
   python -m installer --destdir="$pkgdir" dist/*.whl
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to