# Contributor: Jake Buchholz # Maintainer: Jake Buchholz pkgname=containerd # NOTE: containerd's Makefile tries to get REVISION from git, but we're building from a tarball. _commit=85f6aa58b8a3170aec9824568f7a31832878b603 pkgver=1.2.7 pkgrel=0 pkgdesc="An open and reliable container runtime" url="https://containerd.io" arch="all" license="Apache-2.0" depends="runc" makedepends="btrfs-progs-dev go go-md2man libseccomp-dev" subpackages="$pkgname-doc" source="containerd-$pkgver.tar.gz::https://github.com/containerd/containerd/archive/v$pkgver.tar.gz" builddir="$srcdir/src/github.com/containerd/containerd" # secfixes: # 1.2.6: # - CVE-2019-9946 build() { cd "$srcdir" export GOPATH="$PWD" mkdir -p $(dirname "$builddir") ln -s "$PWD/$pkgname-$pkgver" "$builddir" cd "$builddir" make VERSION="v$pkgver" REVISION="$_commit" make man } check() { cd "$builddir" ./bin/containerd --version } package() { cd "$builddir" install -d "$pkgdir"/usr/bin/ install -Dsm755 "$builddir"/bin/* "$pkgdir"/usr/bin/ install -d "$pkgdir"/usr/share/man/man1/ install -Dm644 "$builddir"/man/*.1 "$pkgdir"/usr/share/man/man1/ install -d "$pkgdir"/usr/share/man/man5/ install -Dm644 "$builddir"/man/*.5 "$pkgdir"/usr/share/man/man5/ } sha512sums="b96ca236d28933c1bf309fc7204af7d2c356e19af394d5c2274a178c8f15298faf6ca9bb8e7d04acb7c3c9c41035446643a8df0103017f7ed0320bfc37cb8ca9 containerd-1.2.7.tar.gz"