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

George Rawlinson grawlinson at archlinux.org
Tue Jun 22 09:41:44 UTC 2021


    Date: Tuesday, June 22, 2021 @ 09:41:44
  Author: grawlinson
Revision: 966824

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: nomad-driver-containerd/repos/community-testing-x86_64/PKGBUILD (from rev 966823, nomad-driver-containerd/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-06-22 09:41:44 UTC (rev 966824)
@@ -0,0 +1,36 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nomad-driver-containerd
+_pkgname=containerd-driver
+pkgver=0.8
+pkgrel=2
+pkgdesc="A nomad taskdriver for containerd containers"
+arch=('x86_64')
+url="https://github.com/Roblox/nomad-driver-containerd"
+license=('MPL2')
+depends=('nomad' 'glibc' 'containerd')
+makedepends=('go' 'git')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+b2sums=('ad1d8dec8351b6e4c852119c60d8f00a2a4ca66183036fc189dc9ab54ff5792f3d9989a67792c61ebb2c439fabf409814526d117f9826cc1a2bf6b69bd11c5ce')
+
+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 "build/$pkgname" "$pkgdir/usr/lib/nomad/plugins/$_pkgname"
+}



More information about the arch-commits mailing list