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

Jonas Witschel diabonas at archlinux.org
Wed Apr 29 21:13:53 UTC 2020


    Date: Wednesday, April 29, 2020 @ 21:13:53
  Author: diabonas
Revision: 622325

upgpkg: weechat-matrix 0.2.0-2: update post_install message

weechat 2.8-2 recognises scripts in /usr/share/weechat/, so there is no need to
create a symlink to weechat-matrix.py in ~/.weechat/python/ any more.

Modified:
  weechat-matrix/trunk/PKGBUILD
  weechat-matrix/trunk/weechat-matrix.install

------------------------+
 PKGBUILD               |    2 +-
 weechat-matrix.install |   13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-29 18:53:51 UTC (rev 622324)
+++ PKGBUILD	2020-04-29 21:13:53 UTC (rev 622325)
@@ -2,7 +2,7 @@
 pkgname=weechat-matrix
 pkgver=0.2.0
 _tag=16d8e979166aec92cb55cd7e946e84606fffa8f4 # git show-ref "$pkgver"
-pkgrel=1
+pkgrel=2
 pkgdesc='Weechat Matrix protocol script written in Python'
 arch=('any')
 url='https://github.com/poljar/weechat-matrix'

Modified: weechat-matrix.install
===================================================================
--- weechat-matrix.install	2020-04-29 18:53:51 UTC (rev 622324)
+++ weechat-matrix.install	2020-04-29 21:13:53 UTC (rev 622325)
@@ -1,13 +1,14 @@
 post_install() {
-	echo "To add this script to your WeeChat installation, please execute the following command:"
-	echo "ln -s /usr/share/weechat/python/weechat-matrix.py -t ~/.weechat/python"
+	echo "To load this script, execute the following command in WeeChat:"
+	echo "/script load weechat-matrix.py"
+	echo "To load it automatically during WeeChat startup, use:"
+	echo "mkdir -p ~/.weechat/python/autoload"
+	echo "ln -s /usr/share/weechat/python/weechat-matrix.py -t ~/.weechat/python/autoload"
 }
 
 post_upgrade() {
-	if [ "$2" = "0.1.0-1" ]
+	if [ "$(vercmp "$2" 0.2.0-2)" -lt 0 ]
 	then
-		echo "The location of the script has changed, please update your symbolic links:"
-		echo "rm ~/.weechat/python/{matrix,matrix.py}"
-		echo "ln -s /usr/share/weechat/python/weechat-matrix.py -t ~/.weechat/python"
+		post_install
 	fi
 }



More information about the arch-commits mailing list