upgpkg: cloud-hypervisor 17.0-1

New upstream release.
This commit is contained in:
George Rawlinson 2021-07-24 10:50:29 +00:00
parent 40a7250c58
commit 95802d784e
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -1,25 +1,33 @@
# Maintainer:
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=cloud-hypervisor
pkgver=16.0
pkgver=17.0
pkgrel=1
pkgdesc="A Virtual Machine Monitor for modern cloud workloads"
url="https://github.com/cloud-hypervisor/cloud-hypervisor"
arch=('x86_64')
license=('Apache')
depends=('gcc-libs')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('f8327de30c123bcab6ed8c67cc1498ff1e00217f94f001701a430f7365cc8dd28df1a164c55b05f692a5ac2abc58b96f43c3bec984cdd38cbdf319c18949d325')
b2sums=('6ed3dfffd888d8380d2469e085f0974d93f020df8679e06c530bd7a56c5b262785ea7d33e7c62218353f0f2544222ae0b10bfe1f940250d44bd714eab0fde481')
prepare() {
cd "$pkgname-$pkgver"
# fetch all dependencies
cargo fetch --locked
}
build() {
cd "$pkgname-$pkgver"
# FTBFS: --all-features due to hypervisor not compiling
#RUSTUP_TOOLCHAIN=stable cargo build --release --locked --all-features --target-dir=target
cargo build --release
cargo build --release --offline
}
package() {
install -vDm755 -t "$pkgdir/usr/bin" \
"$pkgname-$pkgver/target/release/"{ch-remote,cloud-hypervisor}
find "$pkgname-$pkgver/target/release" \
-maxdepth 1 \
-executable \
-type f \
-exec install -vDm755 -t "$pkgdir/usr/bin" "{}" \+
}