mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-15 04:43:01 +01:00
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Contributor: Thomas Kienlen <kommander@laposte.net>
|
|
# Maintainer: Thomas Kienlen <kommander@laposte.net>
|
|
pkgname=scaleway-cli
|
|
pkgver=2.32.1
|
|
pkgrel=0
|
|
pkgdesc="Command-line client for Scaleway Cloud"
|
|
url="https://www.scaleway.com/en/cli"
|
|
arch="all !x86 !armv7 !armhf" # tests are failing for x86, armv7, armhf
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/scaleway/scaleway-cli/archive/refs/tags/v$pkgver.tar.gz"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
options="chmod-clean !check" # failing on the package builders
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -o scw ./cmd/scw/main.go
|
|
PATH=. scw autocomplete script shell=bash > bashcomp
|
|
PATH=. scw autocomplete script shell=fish > fishcomp
|
|
PATH=. scw autocomplete script shell=zsh > zshcomp
|
|
}
|
|
|
|
check() {
|
|
go test -v ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 scw "$pkgdir"/usr/bin/scw
|
|
|
|
install -Dm644 bashcomp "$pkgdir"/usr/share/bash-completion/completions/scw
|
|
install -Dm644 fishcomp "$pkgdir"/usr/share/fish/vendor_completions.d/scw.fish
|
|
install -Dm644 zshcomp "$pkgdir"/usr/share/zsh/site-functions/_scw
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
8521658c38b78376e476b99f67da3c1889bafaefc6b649e46dd99f9007dc6be5b9647134fb2bff45af37854d74c6bf1ad6b37e4f58e44a4c4827c0f89b830ef6 scaleway-cli-2.32.1.tar.gz
|
|
"
|