summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD22
2 files changed, 22 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af7a7f6dffb..29b40d3b151 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
-pkgbase = cloud-hypervisor
- pkgdesc = A Rust-VMM based cloud hypervisor from Intel
- pkgver = 0.3.0
+pkgbase = cloud-hypervisor-bin
+ pkgdesc = A Rust-VMM based cloud hypervisor from Intel (binary source)
+ pkgver = 0.4.0
pkgrel = 1
url = https://github.com/cloud-hypervisor/cloud-hypervisor
arch = x86_64
license = Apache:2.0
makedepends = rust
- depends = qemu-virtiofs-headless
- source = https://github.com/cloud-hypervisor/cloud-hypervisor/archive/v0.3.0.tar.gz
- sha512sums = e026148e69b1990478641e16e96577f2bc273e467a831b3f4442c17b58e4574f11fcf05dc197d274575701c8ccc87fba19e14b49f804b5eb91bc5154beb16ef1
+ depends = virtiofsd
+ provides = cloud-hypervisor
+ conflicts = cloud-hypervisor
+ source = https://github.com/cloud-hypervisor/cloud-hypervisor/releases/download/v0.4.0/cloud-hypervisor
+ sha512sums = 3caa006e66c789cc9c7490e9124f764f2fd2e8fbfc5b8d588e0378523b73e028b60cd603cfbdefd9f6acdcc9b128129050c34a1548fa70bb10126415d42951d0
-pkgname = cloud-hypervisor
+pkgname = cloud-hypervisor-bin
diff --git a/PKGBUILD b/PKGBUILD
index 086b2e804d6..19fd8501d09 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,21 @@
# Maintainer: zer0def <zer0def@github>
-pkgname=cloud-hypervisor
-pkgver=0.3.0
+pkgname=cloud-hypervisor-bin
+pkgver=0.4.0
pkgrel=1
-pkgdesc="A Rust-VMM based cloud hypervisor from Intel"
+pkgdesc="A Rust-VMM based cloud hypervisor from Intel (binary source)"
url="https://github.com/cloud-hypervisor/cloud-hypervisor"
arch=('x86_64')
license=('Apache:2.0')
-depends=('qemu-virtiofs-headless')
+depends=('virtiofsd')
makedepends=('rust')
-source=("https://github.com/cloud-hypervisor/cloud-hypervisor/archive/v${pkgver}.tar.gz")
-sha512sums=('e026148e69b1990478641e16e96577f2bc273e467a831b3f4442c17b58e4574f11fcf05dc197d274575701c8ccc87fba19e14b49f804b5eb91bc5154beb16ef1')
+provides=('cloud-hypervisor')
+conflicts=('cloud-hypervisor')
+source=(
+ "https://github.com/cloud-hypervisor/cloud-hypervisor/releases/download/v${pkgver}/cloud-hypervisor"
+)
+sha512sums=(
+ '3caa006e66c789cc9c7490e9124f764f2fd2e8fbfc5b8d588e0378523b73e028b60cd603cfbdefd9f6acdcc9b128129050c34a1548fa70bb10126415d42951d0'
+)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -17,7 +23,5 @@ build() {
}
package() {
- install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/cloud-hypervisor" "${pkgdir}/usr/bin/cloud-hypervisor"
- install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/vhost_user_net" "${pkgdir}/usr/lib/cloud-hypervisor/vhost_user_net"
- #install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/vhost_user_net" "${pkgdir}/usr/bin/vhost_user_net"
+ install -Dm755 {${srcdir},${pkgdir}/usr/bin}/cloud-hypervisor
}