aboutsummaryrefslogtreecommitdiffstats
path: root/community/terraform/APKBUILD
blob: 370675f977ce55c7956b56aee8817e9dbddf17cd (plain) (blame)
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
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=terraform
pkgver=0.8.2
pkgrel=0
pkgdesc="Building, changing, and combining infrastructure safely and efficiently"
url="https://www.terraform.io/"
arch="all !armhf"
license="MPL 2.0"
depends=""
makedepends="go"
install=""
source="${pkgname}-${pkgver}.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/hashicorp/$pkgname"

prepare() {
	mkdir -p ${builddir%/*}
	mv $srcdir/$pkgname-$pkgver "$builddir"/ || return 1
	default_prepare
}

build() {
	cd "$builddir"
	export GOPATH="$srcdir"
	go build -v -o bin/$pkgname || return 1
}

package() {
	install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname || return 1
}

md5sums="a73454c168143957fb69a2bbbb6560e1  terraform-0.8.2.tar.gz"
sha256sums="bc38273dcaf50e240788f6174dff0ad3cb6b252da22617fae768164cf6065c3b  terraform-0.8.2.tar.gz"
sha512sums="d00b630943b4de15f7eba8e60db485d8f17ce509d5a057715b997faae4420f5f514c2ba0e3722054400a453b953a83d83b8df36908855974c502175f351c6b88  terraform-0.8.2.tar.gz"