summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea2b25b6026b0e395014aac8ecf9dc5f303cc931 (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
pkgname=wee-slack-git
pkgver=2.10.2.r368.gedaad8b
pkgrel=1
pkgdesc='A WeeChat plugin for Slack'
url='https://github.com/wee-slack/wee-slack/'
arch=('any')
license=('MIT')

makedepends=(
  'git'
)

conflicts=(
  'wee-slack'
)

source=(
  'git+https://github.com/wee-slack/wee-slack'
)

sha512sums=(
  'SKIP'
)

pkgver() {
  cd wee-slack
  git describe --long | sed 's/^v//;s/-/.r/;s/-/./g'
}

package() {
  depends+=(
    'python-websocket-client'
    'weechat'
  )

  cd wee-slack
  install -Dm644 wee_slack.py "${pkgdir}/usr/share/weechat/python/wee_slack.py"
  install -Dm644 weemoji.json "${pkgdir}/usr/share/weechat/weemoji.json"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/wee-slack/LICENSE"
}