# Template file for 'packer' pkgname=packer version=1.2.2 revision=1 replaces="packer-bin>=0" short_desc="Create identical multiplatform machine images from a single source" maintainer="Andrea Brancaleoni " build_style=go hostmakedepends="git" license="MPL-2" homepage="http://www.packer.io" go_import_path="github.com/mitchellh/packer" distfiles="https://${go_import_path}/archive/v${version}.tar.gz" checksum=ef600f5323acbcd05cccff84b7bc407fd07560603e74c85b245a0b5940327a91 post_build() { for F in $(find -type f -name main.go); do go get -x $go_import_path/${F%/*} done } do_install() { find "${GOPATH}/bin" -type f -executable | while read line do if [ "$(basename $line)" = packer ]; then vbin $line else vbin $line packer-$(basename $line) fi done }