From 408d1f7e640397de59ff40ad4496b5acc8ffc641 Mon Sep 17 00:00:00 2001 From: Joe Bo Run Date: Tue, 6 Dec 2022 18:12:50 +0200 Subject: [PATCH] upg python-cairo --- python-cairo/PKGBUILD | 6 +++++- python-cairo/PKGBUILD-arch | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-cairo/PKGBUILD b/python-cairo/PKGBUILD index eec7c87..0205f82 100644 --- a/python-cairo/PKGBUILD +++ b/python-cairo/PKGBUILD @@ -7,7 +7,7 @@ pkgname=python-cairo pkgver=1.23.0 -pkgrel=01 +pkgrel=02 pkgdesc="Python bindings for the cairo graphics library" arch=('x86_64') url="https://pycairo.readthedocs.io/en/latest/" @@ -29,6 +29,10 @@ build() { --prefix=/usr meson compile -C build + # compile Python bytecode + python -m compileall -d / "$pkgdir"/usr/lib + python -O -m compileall -d / "$pkgdir"/usr/lib + } check() { diff --git a/python-cairo/PKGBUILD-arch b/python-cairo/PKGBUILD-arch index f6c8d34..0386217 100644 --- a/python-cairo/PKGBUILD-arch +++ b/python-cairo/PKGBUILD-arch @@ -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 @@ check() { 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 }