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

Alexander Rødseth arodseth at archlinux.org
Sat Feb 13 21:09:37 UTC 2016


    Date: Saturday, February 13, 2016 @ 22:09:36
  Author: arodseth
Revision: 161482

upgpkg: compton 0.1_beta2.5-1

Modified:
  compton/trunk/PKGBUILD
  compton/trunk/compton.install

-----------------+
 PKGBUILD        |   10 +++++++++-
 compton.install |   10 +++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-13 20:48:34 UTC (rev 161481)
+++ PKGBUILD	2016-02-13 21:09:36 UTC (rev 161482)
@@ -13,7 +13,7 @@
 license=('MIT')
 install='compton.install'
 depends=('libgl' 'libdbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig' 'libxinerama' 'hicolor-icon-theme')
-makedepends=('asciidoc' 'mesa' 'git' 'cmake')
+makedepends=('asciidoc' 'mesa' 'git' 'cmake' 'setconf')
 backup=('etc/xdg/compton.conf')
 optdepends=('dbus:          To control compton via D-Bus'
             'xorg-xwininfo: For compton-trans'
@@ -24,6 +24,14 @@
 sha256sums=('SKIP'
             '89f920e429a28443bf81275927e402b3a953ef8a7160af468ae05913dee5658b')
 
+prepare() {
+  cd "$pkgname"
+
+  setconf "$pkgname.desktop" Exec 'compton --xrender-sync-fence'
+  setconf "$pkgname.desktop" TryExec 'compton --xrender-sync-fence'
+  setconf "$pkgname.desktop" Comment 'An X compositor'
+}
+
 build() {
   COMPTON_VERSION=v$pkgver make -C "$pkgname" PREFIX=/usr compton docs
 }

Modified: compton.install
===================================================================
--- compton.install	2016-02-13 20:48:34 UTC (rev 161481)
+++ compton.install	2016-02-13 21:09:36 UTC (rev 161482)
@@ -1,15 +1,15 @@
-post_install() {
+post_upgrade() {
   update-desktop-database -q
   xdg-icon-resource forceupdate --theme hicolor &> /dev/null
-  echo 'Remember to configure /etc/xdg/compton.conf to your liking.'
 }
 
-post_upgrade() {
-  post_install
+post_install() {
+  echo 'Configure /etc/xdg/compton.conf as you please.'
+  post_upgrade
 }
 
 post_remove() {
-  post_install
+  post_upgrade
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list