summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsolsTiCe d'Hiver2022-01-27 21:52:33 +0100
committersolsTiCe d'Hiver2022-01-27 21:52:55 +0100
commit0af063ebf700624f592a52e3f3ec71c3f035b8e1 (patch)
tree7ff4cbfc9a1857671152e02d03fc7e6f8a6e1459
parent06b9fcec5a8c1bb7ab3ede8e34c397a1c288fee3 (diff)
downloadaur-0af063ebf700624f592a52e3f3ec71c3f035b8e1.tar.gz
Add optdepends
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD16
-rw-r--r--virt-v2v.install4
3 files changed, 18 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d6227ffdf0d2..456938312cdd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,20 @@
pkgbase = virt-v2v
pkgdesc = Convert a guest image to use with KVM
pkgver = 1.44.2
-pkgrel = 1
+pkgrel = 2
url = https://libguestfs.org/virt-v2v.1.html
+install = virt-v2v.install
arch = x86_64
license = GPL
makedepends = ocaml
makedepends = ocaml-findlib
depends = libguestfs
depends = libosinfo
+optdepends = mingw-w64-rhsrvany: for Windows based VM
+optdepends = virtio-win: for windows based VM
source = https://download.libguestfs.org/virt-v2v/1.44-stable/virt-v2v-1.44.2.tar.gz
+source = virt-v2v.install
sha256sums = c99ecabb93d1e6c81f0070b951e7bf42cee2a65a3ece387e01217f06080447fc
+sha256sums = 6235d47396e8e193a80de17825fe337f18ab0bb6ffb4a61f204bea57e5a90f7d
pkgname = virt-v2v
diff --git a/PKGBUILD b/PKGBUILD
index f7eb70e897fa..4ebef20bc04a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,20 +6,20 @@
# Maintainer: solstiCe d'Hiver <solstice.dhiver@gmail.com>
pkgname=virt-v2v
pkgver=1.44.2
-pkgrel=1
+pkgrel=2
pkgdesc="Convert a guest image to use with KVM"
arch=(x86_64)
url="https://libguestfs.org/virt-v2v.1.html"
license=('GPL')
depends=('libguestfs' 'libosinfo')
makedepends=('ocaml' 'ocaml-findlib')
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-source=("https://download.libguestfs.org/virt-v2v/${pkgver:0:4}-stable/virt-v2v-${pkgver}.tar.gz")
-sha256sums=('c99ecabb93d1e6c81f0070b951e7bf42cee2a65a3ece387e01217f06080447fc')
+optdepends=('mingw-w64-rhsrvany: for Windows based VM'
+ 'virtio-win: for windows based VM')
+source=("https://download.libguestfs.org/virt-v2v/${pkgver:0:4}-stable/virt-v2v-${pkgver}.tar.gz" "virt-v2v.install")
+install=virt-v2v.install
+
+sha256sums=('c99ecabb93d1e6c81f0070b951e7bf42cee2a65a3ece387e01217f06080447fc'
+ '6235d47396e8e193a80de17825fe337f18ab0bb6ffb4a61f204bea57e5a90f7d')
build() {
cd "$pkgname-$pkgver"
diff --git a/virt-v2v.install b/virt-v2v.install
new file mode 100644
index 000000000000..02b707383652
--- /dev/null
+++ b/virt-v2v.install
@@ -0,0 +1,4 @@
+post_install() {
+ echo "virt-v2v expects rhsrvany.exe to be in /usr/share/virt-tools/; if installing the optdepends mingw-w64-rhsrvany, please make a symlink in that directory"
+ echo "virt-v2v expects virtio-win.iso to be in /usr/share/virto-win/; if installing the optdepends virtio-win, please make a symlink in that directory"
+}