diff options
author | Benjamin Denhartog | 2020-03-29 12:30:23 -0700 |
---|---|---|
committer | Benjamin Denhartog | 2020-03-29 13:21:22 -0700 |
commit | 165cdff492fb0b6392ae58e8acaeb210962c62fb (patch) | |
tree | 14f94f72ba4c064361c42b55757fe6aa156ec949 | |
parent | e8193f47e72d91410a7a30ac974c1f6c5b5e92ef (diff) | |
download | aur-165cdff492fb0b6392ae58e8acaeb210962c62fb.tar.gz |
feat(weechat-notify-send): use post install/upgrade hooks to present messaging
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | weechat-notify-send.install | 29 |
3 files changed, 33 insertions, 11 deletions
@@ -1,8 +1,9 @@ pkgbase = weechat-notify-send pkgdesc = A WeeChat script that sends highlight and message notifications through notify-send pkgver = 0.9 - pkgrel = 2 + pkgrel = 3 url = https://github.com/s3rvac/weechat-notify-send + install = weechat-notify-send.install arch = any license = MIT depends = libnotify @@ -2,19 +2,10 @@ # POST-INSTALLATION INSTRUCTIONS # -# WeeChat is unable to source files from outside of a user's home directory. -# Because of this limitation, this package *DOES NOT* make this plugin available -# to WeeChat without end user interaction. -# -# Each user who wants to enable this plugin needs to create symlinks in the -# WeeChat configuration directory for their user (by default, ~/.weechat). The -# following command(s) will accomplish this: -# -# $ ln -s /usr/lib/weechat/python/notify_send.py ~/.weechat/python/autoload/notify_send.py pkgname=weechat-notify-send pkgver=0.9 -pkgrel=2 +pkgrel=3 pkgdesc="A WeeChat script that sends highlight and message notifications through notify-send" url='https://github.com/s3rvac/weechat-notify-send' arch=('any') @@ -24,6 +15,7 @@ depends=( 'python' 'weechat' ) +install=$pkgname.install source=("${pkgname}_${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha512sums=('108c094ab9080581284255bd7c9aa8f4d9dcb836b91a082c21370810b60eabbc8825d37deffa651d650d24427fdf45233d08b5225c710e7e63450cda45f9c1f1') diff --git a/weechat-notify-send.install b/weechat-notify-send.install new file mode 100644 index 000000000000..85ade7874d70 --- /dev/null +++ b/weechat-notify-send.install @@ -0,0 +1,29 @@ +_install_update_msg() { +cat <<EOF + + +WeeChat is unable to source plugin scripts from outside of the process +owner's configuration directory. Because of this limitation, this package +**DOES NOT** make the plugin available to WeeChat without additional end +user interaction. + +Each user who wants to enable this plugin should create a symlink in the in +the configuration directory for their user (by default, ~/.weechat): + + \$ ln -s /usr/lib/weechat/python/notify_send.py ~/.weechat/python/ + +To load the script on start up, you'll also need to symlink it into the autoload folder: + + \$ ln -s /usr/lib/weechat/python/notify_send.py ~/.weechat/python/autoload/ + + +EOF +} + +post_install() { + _install_update_msg +} + +post_upgrade() { + _install_update_msg +} |