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

Alexander Rødseth arodseth at gemini.archlinux.org
Mon Feb 14 10:56:02 UTC 2022


    Date: Monday, February 14, 2022 @ 10:56:02
  Author: arodseth
Revision: 1133124

Minor performance improvement to the default settings

Modified:
  picom/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-14 09:44:04 UTC (rev 1133123)
+++ PKGBUILD	2022-02-14 10:56:02 UTC (rev 1133124)
@@ -5,7 +5,7 @@
 
 pkgname=picom
 pkgver=9.1
-pkgrel=1
+pkgrel=2
 pkgdesc='X compositor that may fix tearing issues'
 arch=(x86_64)
 url='https://github.com/yshui/picom'
@@ -13,7 +13,7 @@
 replaces=(compton)
 provides=(compton)
 conflicts=(compton)
-makedepends=(asciidoc git mesa meson ninja uthash)
+makedepends=(asciidoc git mesa meson ninja setconf uthash)
 depends=(hicolor-icon-theme libconfig libdbus libev libgl pcre pixman
          xcb-util-image xcb-util-renderutil)
 backup=(etc/xdg/picom.conf)
@@ -25,9 +25,18 @@
 validpgpkeys=('A22F5C0F4FCF9C7C89A167462C965E9E5D45D730') # Yuxuan Shui <yshuiv7 at gmail.com>
 b2sums=('SKIP')
 
+prepare() {
+  cd $pkgname
+  # More subtle transparency in the default settings
+  setconf picom.sample.conf 'frame-opacity=0.9;'
+  setconf picom.sample.conf 'inactive-opacity=0.95;'
+  # Improve performance (recommended option)
+  setconf -u picom.sample.conf 'glx-no-stencil=true;'
+}
+
 build() {
   mkdir -p build
-  arch-meson build $pkgname -D b_ndebug=true -D with_docs=true
+  arch-meson --buildtype=release -D with_docs=true build $pkgname
   ninja -v -C build
 }
 
@@ -38,11 +47,11 @@
 package() {
   DESTDIR="$pkgdir" ninja -C build install
 
-  # The config that comes with picom
+  # Default and example configuration
   install -Dm644 $pkgname/picom.sample.conf "$pkgdir/etc/xdg/picom.conf"
   install -Dm644 $pkgname/picom.sample.conf "$pkgdir/usr/share/doc/picom/picom.conf.example"
 
-  # Man pages and license files
+  # Man pages and licenses
   install -Dm644 build/man/picom.1 "$pkgdir/usr/share/man/man1/picom.1"
   install -Dm644 build/man/picom-trans.1 "$pkgdir/usr/share/man/man1/picom-trans.1"
   install -Dm644 $pkgname/LICENSES/MIT "$pkgdir/usr/share/licenses/$pkgname/MIT"



More information about the arch-commits mailing list