summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0f61040f00b4d37a921b6cf8eb0897ffdc1420a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Vincent Kobel (v@kobl.one)

_pkgname='gvisor'
pkgname="${_pkgname}-git"
pkgver=r80.275a7b6
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/google/${_pkgname}")
provides=('runsc')
makedepends=('git' '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"
}