blob: e3584d022ec80cbf39a89827c3333def6e4f1ca8 (
plain)
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
36
37
38
|
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=terraform
pkgver=0.7.12
pkgrel=0
pkgdesc="Building, changing, and combining infrastructure safely and efficiently"
url="https://www.terraform.io/"
arch="x86_64"
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 "$srcdir/src/github.com/hashicorp"
mv $srcdir/$pkgname-$pkgver "$builddir"/ || return 1
default_prepare
}
build() {
cd $builddir
GOPATH="$srcdir" go build -v -o bin/$pkgname || return 1
}
package() {
cd "$builddir"
install -Dm755 bin/$pkgname \
"${pkgdir}/usr/bin/$pkgname" || return 1
}
md5sums="403fd330efb11e18737f1c4e47dc75be terraform-0.7.12.tar.gz"
sha256sums="e5bd86492557b17dd12b99ff41eb0b31c0d19ceb54292c399ab56ec209a22200 terraform-0.7.12.tar.gz"
sha512sums="72c6f5ef997c3d538537a21a7a96a97e8d89a4b7ec18872d962afb72fae2cf4eb62608424dcfde8375c9f6561fbb2d230d84c941ba8e1624327e7b63278fd296 terraform-0.7.12.tar.gz"
|