diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-12-20 10:16:05 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-12-20 16:42:11 +0100 |
commit | 9fe6e7fd5a85f74ca82168fb417412f3d7ca8a96 (patch) | |
tree | a1920d23e7aaa84b8636bca8df99117b6e207235 | |
parent | d9686e07897a3b5f9624cb22b57fb1dfc6b70b14 (diff) | |
download | aports-9fe6e7fd5a85f74ca82168fb417412f3d7ca8a96.tar.bz2 aports-9fe6e7fd5a85f74ca82168fb417412f3d7ca8a96.tar.xz |
testing/terraform: upgrade to 0.8.1
I have upgraded terraform to the latest stable release, I have applied the same variables and functions like @clandmeter got for hugo at https://github.com/tboerger/aports/blob/a7edb288d896e937ec5290fb51b8317c30e1c522/testing/hugo/APKBUILD to have it in a similar fashion.
-rw-r--r-- | testing/terraform/APKBUILD | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/testing/terraform/APKBUILD b/testing/terraform/APKBUILD index e3584d022e..f959ec8739 100644 --- a/testing/terraform/APKBUILD +++ b/testing/terraform/APKBUILD @@ -2,11 +2,11 @@ # Contributor: Gennady Feldman <gena01@gmail.com> # Maintainer: Thomas Boerger <thomas@webhippie.de> pkgname=terraform -pkgver=0.7.12 +pkgver=0.8.1 pkgrel=0 pkgdesc="Building, changing, and combining infrastructure safely and efficiently" url="https://www.terraform.io/" -arch="x86_64" +arch="all" license="MPL 2.0" depends="" makedepends="go" @@ -15,24 +15,21 @@ source="${pkgname}-${pkgver}.tar.gz::https://github.com/hashicorp/terraform/arch builddir="$srcdir/src/github.com/hashicorp/$pkgname" prepare() { - mkdir -p "$srcdir/src/github.com/hashicorp" + mkdir -p ${builddir%/*} mv $srcdir/$pkgname-$pkgver "$builddir"/ || return 1 default_prepare } build() { - cd $builddir - - GOPATH="$srcdir" go build -v -o bin/$pkgname || return 1 + cd "$builddir" + export GOPATH="$srcdir" + go build -v -o bin/$pkgname || return 1 } package() { - cd "$builddir" - - install -Dm755 bin/$pkgname \ - "${pkgdir}/usr/bin/$pkgname" || return 1 + install -Dm755 "$builddir"/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" +md5sums="b9daa0203e761775d94cb56edc586dc6 terraform-0.8.1.tar.gz" +sha256sums="927b4909a64b8550376e87c737eab0f34a0895f2700fa8bc81de339f4a7ffe20 terraform-0.8.1.tar.gz" +sha512sums="3134c42b58262869e6c314210d3b19e5bade85fc80146ece6e5de8e980f186774f18bf8f8b04e118ec5667d2d699bb9149852d70ecbe28f7ada1061cfe251532 terraform-0.8.1.tar.gz" |