summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e538ae9b82bb88b0fceae1d0964ac766fd567e2f (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
# Maintainer: XiaYeSuiFeng <xiayesuifeng@firerain.me>

pkgname=telepresence2
pkgver=2.17.0
pkgrel=1
pkgdesc="Local development against a remote Kubernetes or OpenShift cluster"
arch=('x86_64')
license=('Apache')
url="https://github.com/telepresenceio/telepresence"
makedepends=('go' 'git' 'make' 'jq')
backup=()
depends=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/telepresenceio/telepresence/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('15e4c2ba53651b5fd3bbe463b162b8ae')

package(){
  cd ${srcdir}/telepresence-${pkgver}
  TELEPRESENCE_VERSION=v${pkgver} make build
  install -Dm755 ./build-output/bin/telepresence ${pkgdir}/usr/bin/telepresence
  ${pkgdir}/usr/bin/telepresence completion zsh > ${srcdir}/zsh_telepresence
  ${pkgdir}/usr/bin/telepresence completion fish > ${srcdir}/fish_telepresence
  ${pkgdir}/usr/bin/telepresence completion bash > ${srcdir}/bash_telepresence
  install -D -m 0644 ${srcdir}/zsh_telepresence ${pkgdir}/usr/share/zsh/site-functions/_telepresence
  install -D -m 0644 ${srcdir}/fish_telepresence ${pkgdir}/usr/share/fish/completions/telepresence.fish
  install -D -m 0644 ${srcdir}/bash_telepresence ${pkgdir}/usr/share/bash-completion/completions/telepresence
}