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

Maxim Baz maximbaz at archlinux.org
Tue Nov 12 10:31:12 UTC 2019


    Date: Tuesday, November 12, 2019 @ 10:31:12
  Author: maximbaz
Revision: 526976

Add post-upgrade note as well to add user to 'video' group

Modified:
  light/trunk/PKGBUILD
  light/trunk/light.install

---------------+
 PKGBUILD      |    2 +-
 light.install |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-12 10:31:08 UTC (rev 526975)
+++ PKGBUILD	2019-11-12 10:31:12 UTC (rev 526976)
@@ -4,7 +4,7 @@
 
 pkgname=light
 pkgver=1.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Program to easily change brightness on backlight-controllers.'
 arch=('x86_64')
 url='https://github.com/haikarainen/light'

Modified: light.install
===================================================================
--- light.install	2019-11-12 10:31:08 UTC (rev 526975)
+++ light.install	2019-11-12 10:31:12 UTC (rev 526976)
@@ -1,3 +1,9 @@
 post_install() {
-  printf '====> %s\n' 'Make sure to add your user to the video group.'
+    printf '====> %s\n' 'Make sure to add your user to the video group.'
 }
+
+post_upgrade() {
+    if (( $(vercmp $2 '1.2-3') < 0 )); then
+        printf '====> %s\n' 'Make sure to add your user to the video group.'
+    fi
+}



More information about the arch-commits mailing list