Date: Friday, January 20, 2023 @ 21:18:07
  Author: jelle
Revision: 1387172

Remove hardcoded python version strings

Modified:
  python-yarg/trunk/PKGBUILD

----------+
 PKGBUILD |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-20 20:36:13 UTC (rev 1387171)
+++ PKGBUILD    2023-01-20 21:18:07 UTC (rev 1387172)
@@ -29,5 +29,6 @@
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 
-  mv "$pkgdir"/usr/lib/python3.10/site-packages/{,yarg/}tests
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
+  mv "$pkgdir"/usr/lib/python${python_version}/site-packages/{,yarg/}tests
 }

Reply via email to