summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 968afa7e40e64a9508da325d0f3ce6f828728bed (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
# Maintainer: Vyacheslav Konovalov <vyachkonovalov@protonmail.com>

pkgname=go-sendxmpp-git
pkgver=r86.cbac6db
pkgrel=1
pkgdesc='A little tool to send messages to an XMPP contact or MUC'
url='https://salsa.debian.org/mdosch/go-sendxmpp'
makedepends=('git' 'go')
arch=('x86_64')
license=('BSD-2-clause')
source=('git+https://salsa.debian.org/mdosch-guest/go-sendxmpp.git')
sha256sums=('SKIP')

pkgver() {
  cd go-sendxmpp
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd go-sendxmpp
  go build
}

package() {
  cd go-sendxmpp

  for i in 1 5; do
    install -Dm644 man/go-sendxmpp.$i -t "${pkgdir}/usr/share/man/man$i"
  done
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/go-sendxmpp"
  install -Dm755 go-sendxmpp -t "$pkgdir/usr/bin"
}