blob: 3686a85cb1b98253583ea8145b0d5e711de6d121 (
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.21.1
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=('fb4632f5da4f635af754e9f2705dbece')
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
}
|