mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 01:01:32 +01:00
32 lines
979 B
Plaintext
32 lines
979 B
Plaintext
# Contributor: psykose <alice@ayaya.dev>
|
|
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=nerdctl
|
|
pkgver=0.20.0
|
|
pkgrel=0
|
|
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 GOPATH="$srcdir"
|
|
|
|
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="
|
|
573fa8c5c9a4582a3aa3101f7e095b8835ce6583072932ac04ccf274668fe67ceab45f4ffd3b3a798bb115cff4804a1d2237ee7b912fb5933077b265c6b712b2 nerdctl-0.20.0.tar.gz
|
|
"
|