26 lines
801 B
Text
26 lines
801 B
Text
|
# Maintainer:
|
||
|
|
||
|
pkgname=cloud-hypervisor
|
||
|
pkgver=16.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')
|
||
|
|
||
|
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
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
install -vDm755 -t "$pkgdir/usr/bin" \
|
||
|
"$pkgname-$pkgver/target/release/"{ch-remote,cloud-hypervisor}
|
||
|
}
|