2021-07-24 10:50:29 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
pkgname=cloud-hypervisor
|
2021-12-13 21:27:59 +00:00
|
|
|
pkgver=20.1
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A Virtual Machine Monitor for modern cloud workloads"
|
2021-12-13 21:27:59 +00:00
|
|
|
url="https://www.cloudhypervisor.org"
|
2021-07-24 10:00:43 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
license=('Apache')
|
2021-12-13 22:00:58 +00:00
|
|
|
depends=('gcc-libs')
|
2021-09-09 17:48:11 +00:00
|
|
|
makedepends=('rust')
|
2021-12-13 21:27:59 +00:00
|
|
|
optdepends=('qemu-headless: for virtiofsd')
|
2021-12-13 22:00:58 +00:00
|
|
|
install="$pkgname.install"
|
2021-12-13 21:27:59 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/cloud-hypervisor/cloud-hypervisor/archive/v$pkgver.tar.gz")
|
|
|
|
sha512sums=('229d081b9bacc048287e84d268c48443f456b9eadd14e812d818900d67e88f12f60eaa2503ffecd0017a5db147063f63165b6d702413fb7ebeeaaf2acd08113c')
|
|
|
|
b2sums=('0e44ff622e84443aadba36479ee6f7394b88649c927a9671598d39953906dd464a0d5b71d29e3086c6cace5bc8f97a07f39795cacb5bba851805ab475692db1f')
|
2021-07-24 10:50:29 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
2021-12-13 21:27:59 +00:00
|
|
|
|
|
|
|
# download dependencies
|
2021-09-09 17:48:11 +00:00
|
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
2021-07-24 10:50:29 +00:00
|
|
|
}
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
# FTBFS: --all-features due to hypervisor not compiling
|
2021-09-09 17:48:11 +00:00
|
|
|
# cargo build --release --locked --all-features --target-dir=target
|
|
|
|
cargo build --release --frozen
|
2021-07-24 10:00:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-07-24 10:50:29 +00:00
|
|
|
find "$pkgname-$pkgver/target/release" \
|
|
|
|
-maxdepth 1 \
|
|
|
|
-executable \
|
|
|
|
-type f \
|
|
|
|
-exec install -vDm755 -t "$pkgdir/usr/bin" "{}" \+
|
2021-07-24 10:00:43 +00:00
|
|
|
}
|