[arch-commits] Commit in nomad-driver-lxc/repos/community-x86_64 (PKGBUILD PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Fri Apr 29 00:12:19 UTC 2022


    Date: Friday, April 29, 2022 @ 00:12:19
  Author: grawlinson
Revision: 1191726

archrelease: copy trunk to community-x86_64

Added:
  nomad-driver-lxc/repos/community-x86_64/PKGBUILD
    (from rev 1191725, nomad-driver-lxc/trunk/PKGBUILD)
Deleted:
  nomad-driver-lxc/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   90 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 53 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-29 00:11:44 UTC (rev 1191725)
+++ PKGBUILD	2022-04-29 00:12:19 UTC (rev 1191726)
@@ -1,37 +0,0 @@
-# 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"
-}

Copied: nomad-driver-lxc/repos/community-x86_64/PKGBUILD (from rev 1191725, nomad-driver-lxc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-29 00:12:19 UTC (rev 1191726)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nomad-driver-lxc
+pkgver=0.3.0
+pkgrel=3
+pkgdesc='A nomad taskdriver for lxc containers'
+arch=('x86_64')
+url='https://github.com/hashicorp/nomad-driver-lxc'
+license=('MPL2')
+depends=('nomad' 'lxc')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='790464c811025e2aa576b55440601979e2775522'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+	cd "$pkgname"
+
+  # create directory for build output
+  mkdir build
+
+  # fix version string
+  sed -i "s/.*PluginVersion.*/\t\tPluginVersion:     \"${pkgver}\",/" lxc/driver.go
+
+  # 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 -t "$pkgdir/usr/lib/nomad/plugins" "build/$pkgname"
+}



More information about the arch-commits mailing list