auto pkgver
This commit is contained in:
parent
712dc84b0a
commit
8165a076e4
2 changed files with 9 additions and 4 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,7 +1,7 @@
|
|||
pkgbase = gvisor-git
|
||||
pkgdesc = User-space kernel, sandboxed container runtime
|
||||
pkgver = 42.b5a0667
|
||||
pkgrel = 2
|
||||
pkgver = r42.b5a0667
|
||||
pkgrel = 1
|
||||
url = https://github.com/google/gvisor
|
||||
arch = x86_64
|
||||
license = Apache-2.0
|
||||
|
|
9
PKGBUILD
9
PKGBUILD
|
@ -2,8 +2,8 @@
|
|||
|
||||
_pkgname='gvisor'
|
||||
pkgname="${_pkgname}-git"
|
||||
pkgver=42.b5a0667
|
||||
pkgrel=2
|
||||
pkgver=r42.b5a0667
|
||||
pkgrel=1
|
||||
pkgdesc="User-space kernel, sandboxed container runtime"
|
||||
arch=('x86_64')
|
||||
url='https://github.com/google/gvisor'
|
||||
|
@ -13,6 +13,11 @@ 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
|
||||
|
|
Loading…
Reference in a new issue