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

addpkg: 0.2.0-2

parents
No related branches found
Tags 4.4.0.20231231-2
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=nomad-driver-podman
pkgver=0.2.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' 'glibc' 'podman')
makedepends=('go' 'git')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('5a1c53248cc0cc08579d308260f6a34ea6f40c68b60a2c902938f13d6bccd21409e6cb040286bbb29d3c1668f21eedaf29cc782901971cf803e89d445da9fa25')
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"
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