# Template file for 'packer'
pkgname=packer
version=1.16.0
revision=1
build_style=go
go_import_path="github.com/hashicorp/packer"
short_desc="Create identical multiplatform machine images from a single source"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BUSL-1.1"
homepage="http://www.packer.io"
distfiles="https://github.com/hashicorp/packer/archive/v${version}.tar.gz"
checksum=9527aa4ba6a621b67c767803e5ba12b560263ae11b5e25d3db4623a7ec70d6d4
replaces="packer-bin>=0"
repository=nonfree

case "$XBPS_TARGET_MACHINE" in
	arm*) go_ldflags="-linkmode=external";;
esac
