[arch-commits] Commit in nomad-driver-podman/repos (2 files)

George Rawlinson grawlinson at archlinux.org
Tue Jun 22 09:46:49 UTC 2021


    Date: Tuesday, June 22, 2021 @ 09:46:48
  Author: grawlinson
Revision: 966827

archrelease: copy trunk to community-testing-x86_64

Added:
  nomad-driver-podman/repos/community-testing-x86_64/
  nomad-driver-podman/repos/community-testing-x86_64/PKGBUILD
    (from rev 966826, nomad-driver-podman/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: nomad-driver-podman/repos/community-testing-x86_64/PKGBUILD (from rev 966826, nomad-driver-podman/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-06-22 09:46:48 UTC (rev 966827)
@@ -0,0 +1,35 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nomad-driver-podman
+pkgver=0.2.0
+pkgrel=2
+pkgdesc="A nomad taskdriver for podman containers"
+arch=('x86_64')
+url="https://github.com/hashicorp/nomad-driver-podman"
+license=('MPL2')
+depends=('nomad' 'glibc' 'podman')
+makedepends=('go' 'git')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+b2sums=('5a1c53248cc0cc08579d308260f6a34ea6f40c68b60a2c902938f13d6bccd21409e6cb040286bbb29d3c1668f21eedaf29cc782901971cf803e89d445da9fa25')
+
+prepare() {
+	cd "$pkgname-$pkgver"
+  mkdir build
+}
+
+build() {
+	cd "$pkgname-$pkgver"
+  go build \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+    -o build \
+    .
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+  install -vDm755 -t "$pkgdir/usr/lib/nomad/plugins" "build/$pkgname"
+}



More information about the arch-commits mailing list