Skip to content

Instantly share code, notes, and snippets.

@burke
Created October 28, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burke/b0834a3b47cf3bfcacb3 to your computer and use it in GitHub Desktop.
Save burke/b0834a3b47cf3bfcacb3 to your computer and use it in GitHub Desktop.
Alpine Linux APKBUILD for runc
# Contributor: Burke Libbey <burke@libbey.me>
# Maintainer:
pkgname=runc
pkgver=0.0.4
pkgrel=0
_gitcommit=b0fd9fb7
pkgdesc="CLI tool for spawning and running containers according to the OCF specification"
url="http://runc.io/"
arch="x86_64"
license="ASL 2.0"
depends="libseccomp"
depends_dev=""
makedepends="go linux-headers libseccomp-dev"
options="!strip"
install=""
source="
$pkgname-$pkgver.tar.gz::https://github.com/opencontainers/runc/archive/v$pkgver.tar.gz
"
_builddir="${srcdir}/${pkgname}-${pkgver}"
_buildtags=""
gopath="${_builddir}/Godeps/_workspace"
prepare() {
mkdir -p "${gopath}/src/github.com/opencontainers"
ln -s "${_builddir}" "${gopath}/src/github.com/opencontainers/runc"
}
build() {
cd "${_builddir}"
export GOPATH="${gopath}"
go build -o runc -tags "seccomp" .
}
package() {
cd "$_builddir"
install -m755 -D "${_builddir}/runc" \
"${pkgdir}/usr/bin/runc" || return 1
}
md5sums="28e49b64657c34ab08de3b32a0975af7 runc-0.0.4.tar.gz"
sha256sums="b21408d631ff3afc83b632a4c913576a939a58069575ae728e62c91e49f4c18f runc-0.0.4.tar.gz"
sha512sums="8e1175bd3ae56d3cbb167cc6a645bfa3ddc19372ebdcb8c67b239c0244d1cbb8069097efdeddf1a9dede4d46838ee2e1d3382880ed6e933706f62275d0649ea1 runc-0.0.4.tar.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment