1 # Template file for 'packer'
5 replaces="packer-bin>=0"
6 short_desc="Create identical multiplatform machine images from a single source"
7 maintainer="Andrea Brancaleoni <abc@pompel.me>"
11 homepage="http://www.packer.io"
12 go_import_path="github.com/mitchellh/packer"
13 distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
14 checksum=7b2a8ead54ae9c699ba86895b202bfc15c88b980bb63de039b59212bc2c5d892
16 case "$XBPS_TARGET_MACHINE" in
17 i686*|arm*) broken="https://build.voidlinux.eu/builders/i686_builder/builds/9375/steps/shell_3/logs/stdio";;
21 for F in $(find -type f -name main.go); do
22 go get -x $go_import_path/${F%/*}
27 find "${GOPATH}/bin" -type f -executable | while read line
29 if [ "$(basename $line)" = packer ]; then
32 vbin $line packer-$(basename $line)