[arch-commits] Commit in terraform/repos/community-x86_64 (PKGBUILD PKGBUILD)

Christian Rebischke shibumi at archlinux.org
Fri Mar 16 15:41:48 UTC 2018


    Date: Friday, March 16, 2018 @ 15:41:46
  Author: shibumi
Revision: 308890

archrelease: copy trunk to community-x86_64

Added:
  terraform/repos/community-x86_64/PKGBUILD
    (from rev 308889, terraform/trunk/PKGBUILD)
Deleted:
  terraform/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   79 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 37 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-16 15:41:33 UTC (rev 308889)
+++ PKGBUILD	2018-03-16 15:41:46 UTC (rev 308890)
@@ -1,42 +0,0 @@
-# $Id$
-# Maintainer: Jerome Leclanche <jerome at leclan.ch>
-
-pkgname=terraform
-pkgver=0.11.3
-pkgrel=1
-pkgdesc="Tool for building, changing, and versioning infrastructure safely and efficiently"
-url="http://www.terraform.io/"
-arch=("x86_64")
-license=("MPL")
-makedepends=("go-pie" "godep" "git" "mercurial")
-_gourl="github.com/hashicorp"
-source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz")
-sha256sums=("5c4ac2fef753eeb0d09a6c2772b81720719c698287d46a625cb5050815dbd63b")
-
-
-prepare() {
-	mkdir -p "$srcdir/src/$_gourl"
-	rm -rf "$srcdir/src/$_gourl/$pkgname"
-	mv -f "terraform-$pkgver" "$srcdir/src/$_gourl/$pkgname"
-	msg2 "Fetching dependencies"
-	cd "$srcdir/src/$_gourl/$pkgname"
-	GOPATH="$srcdir" go get -u github.com/mitchellh/gox
-	GOPATH="$srcdir" go get -u golang.org/x/tools/cmd/stringer
-}
-
-
-build() {
-	msg2 "Build program"
-	cd "$srcdir/src/$_gourl/$pkgname"
-	GOPATH="$srcdir" PATH="$srcdir/bin:$PATH" TF_DEV=1 TF_QUICKDEV=1 make bin
-}
-
-
-package() {
-	cd "$srcdir/bin"
-	install -Dm755 terraform "$pkgdir/usr/bin/terraform"
-
-	cd "$srcdir/src/$_gourl/$pkgname"
-	# Zsh completion
-	install -D contrib/zsh-completion/_terraform "$pkgdir/usr/share/zsh/site-functions/_terraform"
-}

Copied: terraform/repos/community-x86_64/PKGBUILD (from rev 308889, terraform/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-03-16 15:41:46 UTC (rev 308890)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Jerome Leclanche <jerome at leclan.ch>
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=terraform
+pkgver=0.11.4
+pkgrel=1
+pkgdesc="Tool for building, changing, and versioning infrastructure safely and efficiently"
+url="http://www.terraform.io/"
+arch=("x86_64")
+license=("MPL")
+makedepends=("go-pie")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz")
+sha512sums=('f8c75b792d7d31bac34b3cd3fbdd647bdc9fff94496cf955ce4b83e5e4da662b29cd6551a530cbbf917fcc11f111038470a3415ff2fade2d5e6fc52bfe93aa90')
+
+
+prepare() {
+  export GOPATH="${srcdir}"
+  export PATH="$PATH:$GOPATH/bin"
+  mkdir -p src/github.com/hashicorp/
+  mv "${pkgname}-${pkgver}" src/github.com/hashicorp/${pkgname}
+}
+
+
+build() {
+  cd src/github.com/hashicorp/"${pkgname}"
+  go build -o terraform-binary
+}
+
+
+package() {
+  cd src/github.com/hashicorp/"${pkgname}"
+	install -Dm755 terraform-binary "$pkgdir/usr/bin/terraform"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+	# Zsh completion
+	install -D contrib/zsh-completion/_terraform "$pkgdir/usr/share/zsh/site-functions/_terraform"
+}



More information about the arch-commits mailing list