[arch-commits] Commit in compton/trunk (PKGBUILD compton.conf)

Alexander Rødseth arodseth at archlinux.org
Mon Oct 29 19:36:17 UTC 2018


    Date: Monday, October 29, 2018 @ 19:36:16
  Author: arodseth
Revision: 399474

upgpkg: compton 3.0-1

Modified:
  compton/trunk/PKGBUILD
  compton/trunk/compton.conf

--------------+
 PKGBUILD     |   36 +++++++++++++++++++++++++-----------
 compton.conf |    3 ++-
 2 files changed, 27 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-29 17:59:13 UTC (rev 399473)
+++ PKGBUILD	2018-10-29 19:36:16 UTC (rev 399474)
@@ -4,14 +4,15 @@
 # Contributor: Valère Monseur <valere.monseur at ymail.com>
 
 pkgname=compton
-pkgver=2.0
-pkgrel=2
+pkgver=3.0
+pkgrel=1
 pkgdesc='X compositor that may fix tearing issues'
 arch=('x86_64')
 url='https://github.com/yshui/compton'
 license=('MIT')
-makedepends=('asciidoc' 'cmake' 'git' 'mesa' 'setconf')
-depends=('hicolor-icon-theme' 'libconfig' 'libdbus' 'libgl' 'libxcomposite' 'libxinerama' 'libxrandr' 'pcre')
+makedepends=('asciidoc' 'git' 'mesa' 'meson' 'ninja' 'setconf')
+depends=('hicolor-icon-theme' 'libconfig' 'libdbus' 'libev' 'libgl' 'pcre'
+         'pixman' 'xcb-util-image' 'xcb-util-renderutil')
 backup=('etc/xdg/compton.conf')
 optdepends=('dbus:          For controlling compton via D-Bus'
             'xorg-xwininfo: For compton-trans'
@@ -19,26 +20,39 @@
 source=("git+https://github.com/yshui/compton#tag=v${pkgver%.0}"
         'compton.conf')
 sha256sums=('SKIP'
-            '89f920e429a28443bf81275927e402b3a953ef8a7160af468ae05913dee5658b')
+            'a150f61780f316516551ec72c8d3f7170bcb50f93fa5ad605deaeb809ded5ffe')
 
 prepare() {
   cd $pkgname
 
-  setconf $pkgname.desktop Exec 'compton --xrender-sync-fence'
+  setconf $pkgname.desktop Exec 'compton'
   setconf $pkgname.desktop Comment 'Compositor for X11'
   setconf $pkgname.desktop TryExec '/usr/bin/compton'
 }
 
 build() {
-  COMPTON_VERSION="v$pkgver" PREFIX=/usr make -C "$pkgname" compton docs
+  cd $pkgname
+
+  mkdir -p ../build
+  arch-meson ../build \
+    -D distributor_name='Arch Linux'
+  ninja -v -C ../build
 }
 
+check() {
+  cd $pkgname
+
+  ninja -C ../build test
+}
+
 package() {
-  PREFIX="$pkgdir/usr" make -C "$pkgname" install
+  DESTDIR="$pkgdir" ninja -C build install
+  install -Dm644 compton.conf "$pkgdir/etc/xdg/compton.conf"
 
-  install -Dm644 $pkgname/compton.sample.conf "$pkgdir/etc/xdg/compton.conf.example"
-  install -Dm644 compton.conf "$pkgdir/etc/xdg/compton.conf"
-  install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd $pkgname
+  install -Dm644 compton.sample.conf "$pkgdir/etc/xdg/compton.conf.example"
+  install -Dm644 LICENSES/MIT "$pkgdir/usr/share/licenses/$pkgname/MIT"
+  install -Dm644 LICENSES/MPL-2.0 "$pkgdir/usr/share/licenses/$pkgname/MPL-2.0"
 }
 
 # vim: ts=2 sw=2 et

Modified: compton.conf
===================================================================
--- compton.conf	2018-10-29 17:59:13 UTC (rev 399473)
+++ compton.conf	2018-10-29 19:36:16 UTC (rev 399474)
@@ -189,6 +189,7 @@
 # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
 # Reported to have no effect, though.
 dbe = false;
+
 # Painting on X Composite overlay window. Recommended.
 paint-on-overlay = true;
 
@@ -195,7 +196,7 @@
 # Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
 # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
 # unless you wish to specify a lower refresh rate than the actual value.
-sw-opti = true;
+#sw-opti = true;
 
 # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
 # Known to cause flickering when redirecting/unredirecting windows.



More information about the arch-commits mailing list