30 lines
679 B
Bash
30 lines
679 B
Bash
# Maintainer: Vincent Kobel (v@kobl.one)
|
|
|
|
_pkgname='gvisor'
|
|
pkgname="${_pkgname}-git"
|
|
pkgver=r48
|
|
pkgrel=2
|
|
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/google/${_pkgname}")
|
|
provides=('runsc')
|
|
makedepends=('bazel' 'python')
|
|
|
|
pkgver() {
|
|
cd "${_pkgname}"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
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"
|
|
}
|
|
|