[arch-commits] Commit in nomad-driver-lxc/repos (2 files)
George Rawlinson
grawlinson at archlinux.org
Tue Jun 22 09:42:52 UTC 2021
Date: Tuesday, June 22, 2021 @ 09:42:51
Author: grawlinson
Revision: 966825
archrelease: copy trunk to community-testing-x86_64
Added:
nomad-driver-lxc/repos/community-testing-x86_64/
nomad-driver-lxc/repos/community-testing-x86_64/PKGBUILD
(from rev 966824, nomad-driver-lxc/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: nomad-driver-lxc/repos/community-testing-x86_64/PKGBUILD (from rev 966824, nomad-driver-lxc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-06-22 09:42:51 UTC (rev 966825)
@@ -0,0 +1,37 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nomad-driver-lxc
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="A nomad taskdriver for lxc containers"
+arch=('x86_64')
+url="https://github.com/hashicorp/nomad-driver-lxc"
+license=('MPL2')
+depends=('nomad' 'glibc' 'lxc')
+makedepends=('go' 'git')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+b2sums=('615ec5472597b77e8c1f949eed15a366c2a317fe288a0d29f36860e83e1528e4f9397f4ec30877cca19c7f90d2996f74f8ef988d0ae82da6528745e0fa4dfe20')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ mkdir build
+
+ sed -i "s/.*PluginVersion.*/\t\tPluginVersion: \"${pkgver}\",/" lxc/driver.go
+}
+
+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