# 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=bb71b10fd8f58240ca47fbb579b9d1028eea7c84 pkgver=1.2.5 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" 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="b249d5bfc0c1f884ecc1ad4544f9440405450c31f11e80ac094bfddb7a6660e950116114e563d7655e07f888f2ff62f4476f2b178f4e0e2acbbb9fb84a243b25 containerd-1.2.5.tar.gz"