33 lines
979 B
Bash
33 lines
979 B
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
pkgname=cloud-hypervisor
|
|
pkgver=18.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")
|
|
b2sums=('47f0ad286c9decf0e496d155f91ae9c44fa364a4ac93e9789e7f397e994e45aee102a5ee1100dcd33c24d3e41c86137d48c08902d103b4a53e7f0f27693a03f9')
|
|
|
|
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" "{}" \+
|
|
}
|