summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlashbunny2020-05-21 21:42:29 -0400
committerSlashbunny2020-05-21 22:37:38 -0400
commit99ea4a0bb41077ac839daf23b48480a150fb0f3e (patch)
tree69b976b69d99a6b3b6d92502fb08a45cd3c959da
parent2111f524f93e4db0ba8e23a02d16e191b7bde22a (diff)
downloadaur-99ea4a0bb41077ac839daf23b48480a150fb0f3e.tar.gz
Use .install from community
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--weechat-matrix-git.install27
3 files changed, 11 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 37d6799bd1e2..f2383665cb90 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = weechat-matrix-git
pkgdesc = Weechat Matrix protocol script written in Python
- pkgver = r723.d415841
+ pkgver = r733.427cb9f
pkgrel = 1
url = https://github.com/poljar/weechat-matrix
install = weechat-matrix-git.install
diff --git a/PKGBUILD b/PKGBUILD
index edde4f347954..29d8a533bdc3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=weechat-matrix-git
_pkgname=${pkgname%-git}
-pkgver=r723.d415841
+pkgver=r733.427cb9f
pkgrel=1
pkgdesc='Weechat Matrix protocol script written in Python'
arch=('any')
diff --git a/weechat-matrix-git.install b/weechat-matrix-git.install
index 61d5d3e69b33..40d06439a267 100644
--- a/weechat-matrix-git.install
+++ b/weechat-matrix-git.install
@@ -1,23 +1,14 @@
-_install_update_msg() {
- echo "In order to use this plugin after installation, you'll need to run the following command as the user running weechat:"
- echo ""
- echo " $ ln -s /usr/share/weechat/python/weechat-matrix.py -t ~/.weechat/python/"
- echo ""
- echo "If you want the script to be loaded on start-up, you'll also need to symlink it into the autoload folder:"
- echo ""
- echo " $ ln -s /usr/share/weechat/python/weechat-matrix.py -t ~/.weechat/python/autoload/"
- echo ""
- echo "The location of the script has changed in April 2020, remove your old symlinks and follow the instructions above:"
- echo ""
- echo " $ rm ~/.weechat/python/{matrix,matrix.py}"
- echo " $ rm ~/.weechat/python/autoload/matrix.py"
- echo ""
-}
-
post_install() {
- _install_update_msg
+ 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() {
- _install_update_msg
+ if [ "$(vercmp "$2" 0.2.0-2)" -lt 0 ]
+ then
+ post_install
+ fi
}