From 3f42b71f8f650968402fb98f146450a20404d225 Mon Sep 17 00:00:00 2001 From: Vincent Kobel Date: Thu, 3 May 2018 17:02:03 +0200 Subject: [PATCH] init --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..5c35a39 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = gvisor-git + pkgdesc = User-space kernel, sandboxed container runtime + pkgver = 26.4603f97 + pkgrel = 1 + url = https://github.com/google/gvisor + arch = x86_64 + license = Apache-2.0 + makedepends = bazel + makedepends = python + provides = runsc + source = git+https://github.com/vkobel/gvisor.git + sha256sums = SKIP + +pkgname = gvisor-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2a9ca1d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Vincent Kobel (v@kobl.one) + +_pkgname='gvisor' +pkgname="${_pkgname}-git" +pkgver=26.4603f97 +pkgrel=1 +pkgdesc="User-space kernel, sandboxed container runtime" +arch=('x86_64') +url='https://github.com/google/gvisor' +license=('Apache-2.0') +sha256sums=('SKIP') +source=(git+https://github.com/vkobel/gvisor.git) +provides=('runsc') +makedepends=('bazel' 'python') + +build() { + cd "${srcdir}/${_pkgname}" + bazel build runsc +} + +package() { + cd "${srcdir}/${_pkgname}" + install -D ./bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${pkgdir}/usr/bin/runsc" +} +