1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Benjamin Denhartog <ben@sudoforge.com>
3 # Contributor: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
8 pkgdesc='Thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules'
9 url='https://github.com/gruntwork-io/terragrunt'
11 makedepends=('git' 'go')
12 depends=('glibc' 'terraform')
14 source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
15 sha256sums=('fa55db244a60667f8cf7a86a8b9d53c7df6ab22f4498e7665ae6bb8d36a4c97d')
16 b2sums=('63ca02919bd0402e7a28e2578b3fcb9532a5b7aca7ca97840abda813ae29b86d18fa2d8e37d23fb544d0aa8add2f010e327d31c8dd70544a56828458162b6c98')
20 cd ${pkgname}-${pkgver}
21 export CGO_CFLAGS="${CFLAGS}"
22 export CGO_CXXFLAGS="${CXXFLAGS}"
23 export CGO_CPPFLAGS="${CPPFLAGS}"
24 export CGO_LDFLAGS="${LDFLAGS}"
25 export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
27 -ldflags "-linkmode=external -extldflags '${LDFLAGS}' -X main.VERSION=${pkgver}" \
32 cd ${pkgname}-${pkgver}
33 install -Dm 755 ${pkgname} -t "${pkgdir}/usr/bin"
34 install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
37 # vim:set ts=2 sw=2 et: