summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2dbe1b886eb26f6446f83eb371c8a1ab398b9e9c (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
# Maintainer: Justin Coffman <j@gosecure.dev>

pkgname=stimmtausch-git
pkgver=r246.575a286
pkgrel=1
pkgdesc="terminal-based MUCK client written in Go"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="https://stimmtausch.com"
license=('MIT')
makedepends=('go' 'git')
source=("$pkgname::git+https://github.com/makyo/${pkgname/-git/}.git")
b2sums=('SKIP')

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

build() {
  cd "${pkgname}"
  go build
}

package() {
  cd "${pkgname}"
  install -Dm755 "${pkgname%-*}" -t "${pkgdir}/usr/bin"
  install -Dm644 docs/cmd/*.1 -t "${pkgdir}/usr/share/man/man1"
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname%-*}"
}