Date: Saturday, December 3, 2022 @ 22:31:41
  Author: arojas
Revision: 462977

upgpkg: python-cairo 1.23.0-2: Compile python bytecode (FS#76731)

Modified:
  python-cairo/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-03 22:05:32 UTC (rev 462976)
+++ PKGBUILD    2022-12-03 22:31:41 UTC (rev 462977)
@@ -3,7 +3,7 @@
 
 pkgname=python-cairo
 pkgver=1.23.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings for the cairo graphics library"
 arch=('x86_64')
 url="https://pycairo.readthedocs.io/en/latest/";
@@ -29,4 +29,8 @@
 
 package() {
   meson install -C build --destdir="$pkgdir"
+
+  # compile Python bytecode
+  python -m compileall -d / "$pkgdir"/usr/lib
+  python -O -m compileall -d / "$pkgdir"/usr/lib
 }

Reply via email to