mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 16:52:06 +01:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=terraformer
|
|
pkgver=0.8.24
|
|
pkgrel=3
|
|
pkgdesc="CLI tool to generate Terraform files from existing infrastructure"
|
|
url="https://github.com/GoogleCloudPlatform/terraformer"
|
|
# x86, armv7, armhf: OOM while building on 32bit arches and int overflow with XenOrchestra provider
|
|
# also limited to these only given that this is a huge package, request if you need it elsewhere
|
|
arch="aarch64 x86_64"
|
|
license="Apache-2.0"
|
|
depends="terraform"
|
|
makedepends="go"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/terraformer/archive/refs/tags/$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 $pkgname -t "$pkgdir"/usr/bin/
|
|
install -Dm644 docs/*.md -t "$pkgdir"/usr/share/doc/"$pkgname"/
|
|
}
|
|
|
|
sha512sums="
|
|
3e6c3fd1d049edc78781bbf7c0f744c930216088ee1d071f191953179dbb0db2f3ac7ce5b99466d01cc563ff3accd5e42e316d905323f61d9b4033c1a901f2a3 terraformer-0.8.24.tar.gz
|
|
"
|