blob: 9a5d6a8f24092d9e8c7d253cc49e8440e885efc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=nerdctl
pkgver=0.22.2
pkgrel=1
pkgdesc="Docker-compatible CLI for containerd"
url="https://github.com/containerd/nerdctl/"
arch="all"
license="Apache-2.0"
depends="ca-certificates containerd cni-plugins iptables ip6tables"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/containerd/nerdctl/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # a lot fail
export GOFLAGS="$GOFLAGS -modcacherw -trimpath"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
go build -ldflags "-X github.com/containerd/nerdctl/pkg/version.Version=$pkgver" \
-o nerdctl ./cmd/nerdctl
}
package() {
install -Dm755 nerdctl -t "$pkgdir"/usr/bin
install -Dm644 docs/*.md -t "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="
19bf1366589886fcacffa13327ad810df0c210a56ac92b179803c9f322617d5be7b8399a2214ba58b6b13c3a35c3f539eb745165c9f3a807cb82878f17a007aa nerdctl-0.22.2.tar.gz
"
|