[arch-commits] Commit in libgit2-glib/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Nov 4 17:49:54 UTC 2018


    Date: Sunday, November 4, 2018 @ 17:49:53
  Author: heftig
Revision: 337833

Fix pyc source paths

Modified:
  libgit2-glib/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-04 17:48:38 UTC (rev 337832)
+++ PKGBUILD	2018-11-04 17:49:53 UTC (rev 337833)
@@ -35,8 +35,8 @@
 package() {
   DESTDIR="$pkgdir" meson install -C build
   cp -a "$pkgdir"/usr/lib/python{3.7,2.7}
-  python3 -m compileall "$pkgdir/usr/lib/python3.7"
-  python3 -O -m compileall "$pkgdir/usr/lib/python3.7"
-  python2 -m compileall "$pkgdir/usr/lib/python2.7"
-  python2 -O -m compileall "$pkgdir/usr/lib/python2.7"
+  for _v in 2.7 3.7; do
+    python$_v -m compileall -d /usr/lib/python$_v "$pkgdir/usr/lib/python$_v"
+    python$_v -O -m compileall -d /usr/lib/python$_v "$pkgdir/usr/lib/python$_v"
+  done
 }



More information about the arch-commits mailing list