summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e510efceb86903c07c313e428c41f016062947f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Alex Wicks <alex@awicks.io>
pkgname='packer-provisioner-goss'
provides=('packer-provisioner-goss')
pkgver=3.1.2
pkgrel=1
pkgdesc='Goss Provisioner for Packer'
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://github.com/YaleUniversity/packer-provisioner-goss'
license=('MIT')
depends=(
  'glibc'
  'goss'
  'multipath-tools'
)
makedepends=('go')
optdepends=()
conflicts=()
backup=()
options=()
source=(
  "git://github.com/YaleUniversity/packer-provisioner-goss.git#tag=v${pkgver}"
)
sha256sums=('SKIP')

build() {
  export GOPATH="${srcdir}"

  cd "${srcdir}/packer-provisioner-goss"
  go install \
    -gcflags "all=-trimpath=${PWD}" \
    -asmflags "all=-trimpath=${PWD}" \
    -ldflags "-extldflags ${LDFLAGS}" \
    ./...
}

package() {
  install -Dm755 bin/packer-provisioner-goss "${pkgdir}/usr/bin/packer-provisioner-goss"
}