aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/containerd/abuild
blob: 7c894eb7cb171267a246f15ba128fb5fed034f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name=containerd
version=2.3.1
release=1
source="https://github.com/${name}/${name}/archive/v${version}/${name}-v${version}.tar.gz"

build() {
	export GO111MODULE=auto
	mkdir -p src/github.com/$name
	cd src/github.com/$name
	ln -s $SRC/$name-$version $name
	cd $name
	export GOPATH=$SRC
	# use the long commit hash here
	make VERSION=v$version REVISION=75cb2b7193e4e490e9fbdc236c0e811ccaba3376
	install -d -m 0755 $PKG/usr/bin
	install -m 0755 bin/* $PKG/usr/bin/
}