Skip to content
Snippets Groups Projects
Commit 49b81089 authored by George Rawlinson's avatar George Rawlinson :coffee:
Browse files

upgpkg: nomad-driver-podman; go 1.18 rebuild

parent cb28743c
No related branches found
Tags 4.4.0.20231231-2
No related merge requests found
......@@ -2,24 +2,34 @@
pkgname=nomad-driver-podman
pkgver=0.3.0
pkgrel=1
pkgdesc="A nomad taskdriver for podman containers"
pkgrel=2
pkgdesc='A nomad taskdriver for podman containers'
arch=('x86_64')
url="https://github.com/hashicorp/nomad-driver-podman"
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')
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-$pkgver"
cd "$pkgname"
mkdir build
}
build() {
cd "$pkgname-$pkgver"
go build \
cd "$pkgname"
go build -v \
-trimpath \
-buildmode=pie \
-mod=readonly \
......@@ -30,7 +40,7 @@ build() {
}
package() {
cd "$pkgname-$pkgver"
cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/lib/nomad/plugins" "build/$pkgname"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment