blob: f2a0e60424e84503017c5634a200a02adb3f0fbc (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=ko
pkgver=0.12.0
pkgrel=0
pkgdesc="build containers from go projects"
url="https://github.com/google/ko"
arch="all"
license="Apache-2.0"
makedepends="go"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="https://github.com/google/ko/archive/v$pkgver/ko-$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
mkdir build
go build -o build/ "$builddir"/...
for i in bash fish zsh; do
"$builddir"/build/ko completion $i > "$builddir"/ko.$i
done
}
check() {
go test "$builddir"/...
}
package() {
install -Dm755 "$builddir"/build/ko "$pkgdir"/usr/bin/ko
install -Dm644 "$builddir"/ko.bash "$pkgdir"/usr/share/bash-completion/completions/ko
install -Dm644 "$builddir"/ko.fish "$pkgdir"/usr/share/fish/completions/ko.fish
install -Dm644 "$builddir"/ko.zsh "$pkgdir"/usr/share/zsh/site-functions/_ko
}
sha512sums="
aaa321fe28c59531ac7ecefd7628f2047880c637fd443fbcce1a5d51563865eb068108ab24f04a01223c0f768681d32ca06c0bf469217bd4983b76a147b38fb7 ko-0.12.0.tar.gz
"
|