# Contributor: Jake Buchholz # Maintainer: Jake Buchholz pkgname=runc pkgdesc="CLI tool for spawning and running containers according to the OCI specification" url="https://www.opencontainers.org" _commit=d736ef14f0288d6993a1845745d6756cfc9ddd5a pkgver=1.0.0_rc9 pkgrel=0 _ver=v${pkgver/_rc/-rc} # if we're building against an explicit commit beyond pkgver, use this instead: #_ver=${_commit} arch="all" license="Apache-2.0" makedepends="go go-md2man libseccomp-dev libtool" subpackages="$pkgname-doc" source="runc-$_ver.tar.gz::https://github.com/opencontainers/runc/archive/$_ver.tar.gz" builddir="$srcdir/src/github.com/opencontainers/runc" options="!check" # secfixes: # 1.0.0_rc9: # - CVE-2019-16884 # 1.0.0_rc7: # - CVE-2019-5736 build() { cd "$srcdir" export GOPATH="$PWD" mkdir -p "$(dirname "$builddir")" ln -s "$PWD/$pkgname-${_ver#v}" "$builddir" cd "$builddir" make COMMIT="$_commit" make man } package() { cd "$builddir" install -Dsm755 "$builddir"/runc "$pkgdir"/usr/bin/runc install -d "$pkgdir"/usr/share/man/man8/ install -Dm644 "$builddir"/man/man8/* "$pkgdir"/usr/share/man/man8/ } sha512sums="e7608e3a3360ec19dea33be4aac69b2f263f9d561699aad5b165927eaf0bd45bd68649e9e115aa978928d88f33fc3448b87601a4d34c4e60afd690c41c03c81f runc-v1.0.0-rc9.tar.gz"