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-10-15 07:02:27 +00:00
|
|
|
pkgver=19.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-10-15 07:02:27 +00:00
|
|
|
sha512sums=('59a0157d715e5ccb9ce21ad9313e60a48ccce79f5696417c075d57f65150f621aa354dacb0aebcb7eed83e44b830c871986d55cf7078ce3da6cc5def629f6f62')
|
|
|
|
b2sums=('8f4d861732962a22010416621a9743cfa1a3bac1a62957e653f659d3d3a5febd5f9a6c9ecec2aec009541340584711a62a167286f1ba7c5f24bfda2802b0c332')
|
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
|
|
|
}
|