upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / istio / trunk / PKGBUILD
blob1266e8ecf1f7abfdb852e58c2458c4974fbcf49b
1 # Maintainer: Christian Rebischke <chris.rebischke@archlinux.org>
2 # Contributor: Arturo Penen <apenen@gmail.com>
4 pkgname=istio
5 pkgver=1.16.1
6 pkgrel=1
7 pkgdesc='Istio configuration command line utility for service operators to debug and diagnose their Istio mesh.'
8 arch=('x86_64')
9 url='https://github.com/istio/istio'
10 license=('Apache')
11 makedepends=('go')
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/istio/istio/archive/$pkgver.tar.gz")
13 sha512sums=('8e51088eaa9edb93c17f6e3c971799c1cd40acc907683364e2b8cd88fa819a8570df740bb4d2c49ff84824eba2045baacb87f29c78aa29aee697ebc0c4c77022')
14 b2sums=('8873619820cf0428ab11ebcff32b7069c9eccdea33b49c1ed7baa7d26f28ca371404616e4558859eac6784d98d851e6681e967faec139f0d42a46c760a07f00e')
16 build() {
17   cd $pkgname-$pkgver
18   export VERSION=$pkgver
19   export TAG=$pkgver
20   export BUILD_WITH_CONTAINER=0
21   make build
24 package() {
25   install -Dm 755 "${srcdir}/$pkgname-$pkgver/out/linux_amd64/istioctl" "${pkgdir}/usr/bin/istioctl"
27   # Populate bash and zsh completions
28   install -dm 755 "${pkgdir}/usr/share/bash-completion/completions"
29   install -dm 755 "${pkgdir}/usr/share/zsh/site-functions"
30   "${pkgdir}/usr/bin/istioctl" collateral --bash
31   mv istioctl.bash "${pkgdir}/usr/share/bash-completion/completions/istioctl"
32   "${pkgdir}/usr/bin/istioctl" collateral --zsh
33   mv _istioctl  "${pkgdir}/usr/share/zsh/site-functions/_istioctl"