Commit 9f695517 authored by Sergey Sadovoi's avatar Sergey Sadovoi Committed by Natanael Copa

commmunity/terraform: fix version and add test

parent 5cd59ab6
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Contributor: Gennady Feldman <gena01@gmail.com>
# Contributor: Sergii Sadovyi <serg.sadovoi@gmail.com>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=terraform
pkgver=0.10.8
pkgrel=0
pkgrel=1
pkgdesc="Building, changing, and combining infrastructure safely and efficiently"
url="https://www.terraform.io/"
arch="all !armhf"
......@@ -20,8 +21,14 @@ prepare() {
build() {
cd "$builddir"
export GOPATH="$srcdir"
go build -v -o bin/$pkgname
GOPATH="$srcdir" go build -v -o bin/$pkgname \
-ldflags "-X main.GitCommit=v$pkgver -X github.com/hashicorp/terraform/version.Prerelease= -s -w"
}
check() {
cd "$builddir"
GOPATH="$srcdir" go test
bin/$pkgname -v
}
package() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment