# 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=029124da7af7360afa781a0234d1b083550f797c pkgver=1.0.0_rc7 pkgrel=1 #_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" # secfixes: # 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 } check() { cd "$builddir" ./runc --version } 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="54eccc1ece8f58e90655538938c64289bc4a6180d3abd074d9f5f48f0dd1e2c0139e603e26235ec3efc104f98efbc987207db42490d29a523c52f3526a01e163 runc-029124da7af7360afa781a0234d1b083550f797c.tar.gz"