mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
|
# Contributor: Gennady Feldman <gena01@gmail.com>
|
|
# Contributor: Sergii Sadovyi <serg.sadovoi@gmail.com>
|
|
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
|
pkgname=terraform
|
|
pkgver=1.4.0
|
|
pkgrel=0
|
|
pkgdesc="Building, changing and combining infrastructure safely and efficiently"
|
|
url="https://www.terraform.io/"
|
|
arch="all"
|
|
license="MPL-2.0"
|
|
makedepends="go"
|
|
checkdepends="openssh-client"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -o bin/$pkgname \
|
|
-ldflags "-X main.GitCommit=v$pkgver -X github.com/hashicorp/terraform/version.Prerelease="
|
|
}
|
|
|
|
check() {
|
|
case "$CARCH" in
|
|
arm*|x86)
|
|
go list . | xargs -t -n4 \
|
|
go test -timeout=2m -parallel=4
|
|
;;
|
|
*)
|
|
go test ./...
|
|
;;
|
|
esac
|
|
bin/$pkgname -v
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "$builddir"/bin/$pkgname -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
0f17416dd658915f0bcd83f37428aedbdf60fd89744192bdae2f898fc8445d98544d39651b9779d4dce61f9e97b38b6746ea03ceb33891a21c3c9f2ea4fce321 terraform-1.4.0.tar.gz
|
|
"
|