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
|
2022-01-04 19:58:39 +00:00
|
|
|
pkgver=20.2
|
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")
|
2022-01-04 19:58:39 +00:00
|
|
|
sha512sums=('eba58f505edaa748c9884e7479b35030a611cd36b4b2bbd3b18e5c579fb7cb28815c6301f1b60c68dcf62d4c496d28d7e8b3bf13369833bc491a8b8360724eb8')
|
|
|
|
b2sums=('1e8d03d6913cbd186cbfd62c4151b3be453c1e4b1fa8c06232722c692c35bcfc7167d6a1318459d6742b5865b2d58d097ae373dc798ecfd7a15b171a72fcb0a3')
|
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
|
|
|
}
|