mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-26 10:12:13 +01:00
34 lines
876 B
Plaintext
34 lines
876 B
Plaintext
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
# Contributor: Galen Abell <galen@galenabell.com>
|
|
pkgname=packer
|
|
pkgver=1.8.0
|
|
pkgrel=3
|
|
pkgdesc="tool for creating machine images for multiple platforms"
|
|
url="https://www.packer.io/"
|
|
license="MPL-2.0"
|
|
arch="all"
|
|
makedepends="go"
|
|
options="net chmod-clean"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/packer/archive/v$pkgver.tar.gz"
|
|
|
|
export GOPATH="$srcdir"
|
|
|
|
build() {
|
|
export GOFLAGS="$GOFLAGS -trimpath"
|
|
export GOLDFLAGS="-s -w -X main.GitCommit=v$pkgver"
|
|
go build -v -o bin/$pkgname
|
|
}
|
|
|
|
check() {
|
|
go list . | xargs -t -n4 go test -timeout=2m -parallel=4
|
|
bin/$pkgname -v
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/"$pkgname" -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
442a6a471dc0c8eb62fe15ea24a2ad070d891d32a5e904c321ee2e0a326342f396aff51f6c6db285c20f120c4c62fec451794f7b625ac722c3d9085262a98733 packer-1.8.0.tar.gz
|
|
"
|