34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
pkgname=cloud-hypervisor
|
|
pkgver=20.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')
|
|
makedepends=('rust')
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
|
sha512sums=('08be1987724174957fe2ec4d86c3fc6edc36cd999490a415cf4ad7e409d1c2e3f83f79b82e6f124ae2737b441c76fc6f68e51a45aac327d719d66c4fc11440db')
|
|
b2sums=('d49186b4b2921d73536d4565edbe8968e25fbf160df08579674ac5ab62c52e697b64335088a38af910e2fe0cfd229272fdf5566295f653d99e05b472a9b8425a')
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
# fetch all dependencies
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
# FTBFS: --all-features due to hypervisor not compiling
|
|
# cargo build --release --locked --all-features --target-dir=target
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
package() {
|
|
find "$pkgname-$pkgver/target/release" \
|
|
-maxdepth 1 \
|
|
-executable \
|
|
-type f \
|
|
-exec install -vDm755 -t "$pkgdir/usr/bin" "{}" \+
|
|
}
|