python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / packer / template
blob2cc61f6bf1e9148029b366b9ceb818a6f056c9bc
1 # Template file for 'packer'
2 pkgname=packer
3 version=1.2.4
4 revision=1
5 replaces="packer-bin>=0"
6 short_desc="Create identical multiplatform machine images from a single source"
7 maintainer="Andrea Brancaleoni <abc@pompel.me>"
8 build_style=go
9 hostmakedepends="git"
10 license="MPL-2"
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";;
18 esac
20 post_build() {
21         for F in $(find -type f -name main.go); do
22                 go get -x $go_import_path/${F%/*}
23         done
26 do_install() {
27         find "${GOPATH}/bin" -type f -executable | while read line
28         do
29                 if [ "$(basename $line)" = packer ]; then
30                         vbin $line
31                 else
32                         vbin $line packer-$(basename $line)
33                 fi
34         done