blob: ee1972466bc3a269586f21003a2732928171195d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Benjamin Denhartog <ben@sudoforge.com>
# This PKGBUILD is managed at https://github.com/sudoforge/pkgbuilds
# 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 the Slack plugin
# available to WeeChat without end user interaction.
#
# Each user who wants to enable the Slack plugin needs to create symlinks in
# the WeeChat configuration directory for their user (by default, ~/.weechat).
# The following commands will accomplish this:
#
# $ ln -s /usr/lib/weechat/weemoji.json ~/.weechat/weemoji.json
# $ ln -s /usr/lib/weechat/python/wee_slack.py ~/.weechat/python/autoload/wee_slack.py
pkgname=wee-slack-git
pkgver=2.3.0.r105.g1af420e
pkgrel=2
pkgdesc="A WeeChat plugin for slack"
arch=('any')
url="https://github.com/wee-slack/${pkgname%-git}"
license=('MIT')
depends=(
'python-websocket-client'
'weechat'
)
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${srcdir}/${pkgname%-git}"
msg2 "Installing the wee-slack plugin"
install -Dm644 wee_slack.py "${pkgdir}/usr/lib/weechat/python/wee_slack.py"
msg2 "Installing the emoji tab completion dictionary"
install -Dm644 weemoji.json "${pkgdir}/usr/lib/weechat/weemoji.json"
msg2 "Installing license"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|