File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Contributor: Myroslav Kiurchev <kiurchv@gmail.com>
2+ # Maintainer: Myroslav Kiurchev <kiurchv@gmail.com>
3+ pkgname=nomad-driver-podman
4+ pkgver=0.6.2
5+ # remember to update _gitcommit to revision of the release
6+ _gitcommit=11c4b12
7+ pkgrel=0
8+ pkgdesc=" a nomad task driver plugin for sandboxing workloads in podman containers"
9+ url=" https://developer.hashicorp.com/nomad/plugins/drivers/podman"
10+ arch=" x86_64 aarch64"
11+ license=" MPL-2.0"
12+ depends="
13+ nomad
14+ podman
15+ "
16+ makedepends="
17+ bash
18+ go
19+ linux-headers
20+ make
21+ "
22+ options=" !check" # cannot produce environment for testing in CI
23+ source=" $pkgname -$pkgver .tar.gz::https://github.com/hashicorp/nomad-driver-podman/archive/v$pkgver .tar.gz"
24+
25+ export CGO_ENABLED=0
26+ export GOFLAGS=" $GOFLAGS -trimpath -mod=readonly -modcacherw"
27+ export GOCACHE=" ${GOCACHE:- " $srcdir /go-cache" } "
28+ export GOTMPDIR=" ${GOTMPDIR:- " $srcdir " } "
29+ export GOMODCACHE=" ${GOMODCACHE:- " $srcdir /go" } "
30+
31+ build () {
32+ go build -v -o bin/" $pkgname " \
33+ -ldflags " -X github.com/hashicorp/nomad-driver-podman/version.GitCommit='$pkgver '"
34+ }
35+
36+ check () {
37+ go test -timeout=15m " ./..."
38+ }
39+
40+ package () {
41+ install -m755 -o root -g root -D bin/" $pkgname " " $pkgdir " /usr/lib/nomad/plugins/" $pkgname "
42+ }
43+
44+ sha512sums="
45+ 06f034e6945992e1184b195cc8e7bd3bf127a184fbf1a5fd8f5b41e6b37eb0eed1734a5685314e71994047f5fb299f2e45afdd7d4f4401f7b4b577b5956d3963 nomad-driver-podman-0.6.2.tar.gz
46+ "
You can’t perform that action at this time.
0 commit comments