[arch-commits] Commit in nomad-driver-containerd/repos/community-x86_64 (2 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Sat Jan 22 08:45:13 UTC 2022
Date: Saturday, January 22, 2022 @ 08:45:13
Author: grawlinson
Revision: 1113414
archrelease: copy trunk to community-x86_64
Added:
nomad-driver-containerd/repos/community-x86_64/PKGBUILD
(from rev 1113413, nomad-driver-containerd/trunk/PKGBUILD)
Deleted:
nomad-driver-containerd/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 91 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 50 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-22 08:44:22 UTC (rev 1113413)
+++ PKGBUILD 2022-01-22 08:45:13 UTC (rev 1113414)
@@ -1,41 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-
-pkgname=nomad-driver-containerd
-_pkgname=containerd-driver
-pkgver=0.9.2
-pkgrel=1
-pkgdesc="A nomad taskdriver for containerd containers"
-arch=('x86_64')
-url="https://github.com/Roblox/nomad-driver-containerd"
-license=('MPL2')
-depends=('nomad' 'containerd')
-makedepends=('go' 'git')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('13c5cc9fa3bc55a5be04fdc89031b63b1efc49ca4dc9d1e7820c456f89776cda11ae353ae7464d5bb9f5d7627c677ad695c86d35fae921ab71c53c968be4a8ad')
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- # create directory for build output
- mkdir build
-
- # download dependencies
- go mod vendor
-}
-
-build() {
- cd "$pkgname-$pkgver"
- go build \
- -trimpath \
- -buildmode=pie \
- -mod=vendor \
- -modcacherw \
- -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
- -o build \
- .
-}
-
-package() {
- cd "$pkgname-$pkgver"
- install -vDm755 "build/$pkgname" "$pkgdir/usr/lib/nomad/plugins/$_pkgname"
-}
Copied: nomad-driver-containerd/repos/community-x86_64/PKGBUILD (from rev 1113413, nomad-driver-containerd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-22 08:45:13 UTC (rev 1113414)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nomad-driver-containerd
+_pkgname=containerd-driver
+pkgver=0.9.3
+pkgrel=1
+pkgdesc="A nomad taskdriver for containerd containers"
+arch=('x86_64')
+url="https://github.com/Roblox/nomad-driver-containerd"
+license=('MPL2')
+depends=('nomad' 'containerd')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='c564dd2e58cff25f5e768b754258a44d5e3bf800'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # create directory for build output
+ mkdir build
+
+ # download dependencies
+ go mod download
+}
+
+build() {
+ cd "$pkgname"
+
+ go build -v \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+ -o build \
+ .
+}
+
+package() {
+ cd "$pkgname"
+ install -vDm755 "build/$pkgname" "$pkgdir/usr/lib/nomad/plugins/$_pkgname"
+}
More information about the arch-commits
mailing list