2018-05-03 17:02:03 +02:00
|
|
|
# Maintainer: Vincent Kobel (v@kobl.one)
|
|
|
|
|
|
|
|
_pkgname='gvisor'
|
|
|
|
pkgname="${_pkgname}-git"
|
2018-05-12 09:44:15 +02:00
|
|
|
pkgver=r80.275a7b6
|
2018-05-08 09:21:30 +02:00
|
|
|
pkgrel=1
|
2018-05-03 17:02:03 +02:00
|
|
|
pkgdesc="User-space kernel, sandboxed container runtime"
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://github.com/google/gvisor'
|
|
|
|
license=('Apache-2.0')
|
|
|
|
sha256sums=('SKIP')
|
2018-05-05 11:13:02 +02:00
|
|
|
source=("git+https://github.com/google/${_pkgname}")
|
2018-05-03 17:02:03 +02:00
|
|
|
provides=('runsc')
|
2018-05-12 09:44:15 +02:00
|
|
|
makedepends=('git' 'bazel' 'python')
|
2018-05-03 17:02:03 +02:00
|
|
|
|
2018-05-05 11:32:57 +02:00
|
|
|
pkgver() {
|
|
|
|
cd "${_pkgname}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2018-05-03 17:02:03 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|