Date: Tuesday, August 14, 2018 @ 15:42:11 Author: shibumi Revision: 371589
archrelease: copy trunk to community-x86_64 Added: packer/repos/community-x86_64/ packer/repos/community-x86_64/PKGBUILD (from rev 371588, packer/trunk/PKGBUILD) ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Copied: packer/repos/community-x86_64/PKGBUILD (from rev 371588, packer/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-08-14 15:42:11 UTC (rev 371589) @@ -0,0 +1,32 @@ +# Maintainer: Christian Rebischke <Chris.Rebischke[at]archlinux[dot]org> +pkgname=packer +replaces=('packer-io') +pkgver=1.2.5 +pkgrel=1 +pkgdesc="tool for creating identical machine images for multiple platforms from a single source configuration" +arch=('x86_64') +url="https://github.com/hashicorp/packer" +license=('MPL') +makedepends=('git' 'go-pie' 'go-tools') +depends=('glibc') +source=("${pkgname}-${pkgver}::https://github.com/hashicorp/packer/archive/v${pkgver}.tar.gz") +sha512sums=('0a324076b4365ec8408a194f72678c24557289dcbd3b6e4cbc7aa7b8ce874890218c3196d2132997f33e8fd515df28b2f1ac8bdfe76242f9edb5962c0d63a543') + +prepare() { + export GOPATH="${srcdir}" + export PATH="$PATH:$GOPATH/bin" + mkdir -p "src/github.com/hashicorp" + mv "${pkgname}-${pkgver}" "src/github.com/hashicorp/${pkgname}" + sed -e '/VersionPrerelease = ""/ {N;N;N;d;}' -i "${srcdir}/src/github.com/hashicorp/${pkgname}/Makefile" +} +build() { + cd "src/github.com/hashicorp/${pkgname}" + go build -o packer-binary +} + +package() { + cd "src/github.com/hashicorp/${pkgname}" + install -Dm755 packer-binary "${pkgdir}/usr/bin/packer" +} + +# vim:set et sw=2 ts=2 tw=79: