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-03 01:06:16 +00:00
|
|
|
pkgver=20.0
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A Virtual Machine Monitor for modern cloud workloads"
|
|
|
|
url="https://github.com/cloud-hypervisor/cloud-hypervisor"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('Apache')
|
2021-09-09 17:48:11 +00:00
|
|
|
makedepends=('rust')
|
2021-07-24 10:00:43 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
2021-12-03 01:06:16 +00:00
|
|
|
sha512sums=('08be1987724174957fe2ec4d86c3fc6edc36cd999490a415cf4ad7e409d1c2e3f83f79b82e6f124ae2737b441c76fc6f68e51a45aac327d719d66c4fc11440db')
|
|
|
|
b2sums=('d49186b4b2921d73536d4565edbe8968e25fbf160df08579674ac5ab62c52e697b64335088a38af910e2fe0cfd229272fdf5566295f653d99e05b472a9b8425a')
|
2021-07-24 10:50:29 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
# fetch all 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
|
|
|
}
|