mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: psykose <alice@ayaya.dev>
 | |
| # Maintainer: psykose <alice@ayaya.dev>
 | |
| pkgname=nerdctl
 | |
| pkgver=1.2.1
 | |
| 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
 | |
| 	$pkgname-bash-completion
 | |
| 	$pkgname-fish-completion
 | |
| 	$pkgname-zsh-completion
 | |
| 	"
 | |
| source="$pkgname-$pkgver.tar.gz::https://github.com/containerd/nerdctl/archive/refs/tags/v$pkgver.tar.gz"
 | |
| options="!check" # a lot fail
 | |
| 
 | |
| export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
 | |
| export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
 | |
| export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
 | |
| 
 | |
| build() {
 | |
| 	go build -ldflags "-X github.com/containerd/nerdctl/pkg/version.Version=$pkgver" \
 | |
| 		-o nerdctl ./cmd/nerdctl
 | |
| 
 | |
| 	for shell in bash fish zsh; do
 | |
| 		./nerdctl completion $shell > nerdctl.$shell
 | |
| 	done
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	install -Dm755 nerdctl -t "$pkgdir"/usr/bin
 | |
| 	install -Dm644 docs/*.md -t "$pkgdir"/usr/share/doc/$pkgname
 | |
| 
 | |
| 	install -Dm644 nerdctl.bash \
 | |
| 		"$pkgdir"/usr/share/bash-completion/completions/nerdctl
 | |
| 	install -Dm644 nerdctl.fish \
 | |
| 		"$pkgdir"/usr/share/fish/completions/nerdctl.fish
 | |
| 	install -Dm644 nerdctl.zsh \
 | |
| 		"$pkgdir"/usr/share/zsh/site-functions/_nerdctl
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| f7602f36ba9c51d067f3ff84482c25b8daeb48a426df5192a0cdbe388cfbce3ef74aac159f5e33d5bf5a9d05e290570d790561c862f331a30d49b1ff56d0cbbe  nerdctl-1.2.1.tar.gz
 | |
| "
 |