mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 06:42:01 +01:00
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
|
|
pkgname=ko
|
|
pkgver=0.14.1
|
|
pkgrel=2
|
|
pkgdesc="Build containers from Go projects"
|
|
url="https://ko.build/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/ko-build/ko/archive/v$pkgver/ko-$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -ldflags "-X github.com/google/ko/pkg/commands.Version=$pkgver"
|
|
|
|
for i in bash fish zsh; do
|
|
./ko completion $i > ko.$i
|
|
done
|
|
}
|
|
|
|
check() {
|
|
# TestNewPublisherCanPublish test tries to connect to the Docker socket
|
|
go test -skip TestNewPublisherCanPublish ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 ko -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 ko.bash "$pkgdir"/usr/share/bash-completion/completions/ko
|
|
install -Dm644 ko.fish "$pkgdir"/usr/share/fish/vendor_completions.d/ko.fish
|
|
install -Dm644 ko.zsh "$pkgdir"/usr/share/zsh/site-functions/_ko
|
|
}
|
|
|
|
sha512sums="
|
|
b967c0761e9c2db31b9dc92c039cf199e1bce37370318be19dc1aed95ef7c91b7e37f33285ac9cce7e81c742a27175ba07e7a3bb084aa4751776ae95adce1867 ko-0.14.1.tar.gz
|
|
"
|