2015-08-17 14:32:26 +02:00
|
|
|
# Template file for 'packer'
|
|
|
|
pkgname=packer
|
2015-08-22 19:38:29 +02:00
|
|
|
version=0.8.6
|
2015-08-22 20:42:02 +02:00
|
|
|
revision=3
|
2015-08-17 14:32:26 +02:00
|
|
|
replaces="packer-bin>=0"
|
|
|
|
short_desc="Create identical multiplatform machine images from a single source"
|
|
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
|
|
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"
|
2015-08-22 19:38:29 +02:00
|
|
|
checksum=3d2e4d291a746f8f0aa23f6b5b5b0a6ef7b040e765d856a12f5f125ede8ea425
|
2015-08-17 14:32:26 +02:00
|
|
|
|
|
|
|
post_build() {
|
|
|
|
for F in $(find -type f -name main.go); do
|
|
|
|
go get -x $go_import_path/${F%/*}
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2015-08-22 20:42:02 +02:00
|
|
|
find "${GOPATH}/bin" -type f -executable | while read line
|
2015-08-17 14:32:26 +02:00
|
|
|
do
|
|
|
|
if [[ $(basename $line) == packer ]]; then
|
|
|
|
vbin $line
|
|
|
|
else
|
|
|
|
vbin $line packer-$(basename $line)
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|