[arch-commits] Commit in nomad-driver-podman/repos/community-x86_64 (2 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri Apr 29 00:13:54 UTC 2022
Date: Friday, April 29, 2022 @ 00:13:54
Author: grawlinson
Revision: 1191730
archrelease: copy trunk to community-x86_64
Added:
nomad-driver-podman/repos/community-x86_64/PKGBUILD
(from rev 1191729, nomad-driver-podman/trunk/PKGBUILD)
Deleted:
nomad-driver-podman/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 96 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 53 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-29 00:13:20 UTC (rev 1191729)
+++ PKGBUILD 2022-04-29 00:13:54 UTC (rev 1191730)
@@ -1,43 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-
-pkgname=nomad-driver-podman
-pkgver=0.3.0
-pkgrel=1
-pkgdesc="A nomad taskdriver for podman containers"
-arch=('x86_64')
-url="https://github.com/hashicorp/nomad-driver-podman"
-license=('MPL2')
-depends=('nomad' 'podman')
-makedepends=('go' 'git')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('e92493a5aac53ccc0c443d2b94737177ff30cd7d562d5e38262fe2d531776d0464e34a445c4b4093c3b3d2e3616daa0629778848ffa5d27412a54c06ce026030')
-
-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"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/lib/nomad/plugins" "build/$pkgname"
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
- cp -vr examples "$pkgdir/usr/share/doc/$pkgname"
- # note: examples/plugins is an empty folder
- rm -rf "$pkgdir/usr/share/doc/$pkgname/examples/plugins"
-}
Copied: nomad-driver-podman/repos/community-x86_64/PKGBUILD (from rev 1191729, nomad-driver-podman/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-29 00:13:54 UTC (rev 1191730)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nomad-driver-podman
+pkgver=0.3.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' 'podman')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='ec01bb2b87216219da064359ef95dd3f7f226457'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ mkdir build
+}
+
+build() {
+ cd "$pkgname"
+
+ go build -v \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+ -o build \
+ .
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/lib/nomad/plugins" "build/$pkgname"
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ cp -vr examples "$pkgdir/usr/share/doc/$pkgname"
+ # note: examples/plugins is an empty folder
+ rm -rf "$pkgdir/usr/share/doc/$pkgname/examples/plugins"
+}
More information about the arch-commits
mailing list