Commit 7d296484 authored by Francesco Colista's avatar Francesco Colista
Browse files

community/virt-manager: upgrade to 2.1.0, updated APKBUILD

parent 4296241e
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=virt-manager
pkgver=1.5.1
pkgver=2.1.0
pkgrel=0
pkgdesc="GUI for managing virtual machines"
url="http://virt-manager.org/"
arch="noarch"
license="GPL-2.0-or-later"
_py=py2
depends="python2 gtk+3.0 vte3 $_py-libxml2 $pkgname-common
spice-gtk gtk-vnc>=0.5.2-r2 libosinfo
ttf-dejavu gnome-icon-theme dconf"
depends_dev="intltool"
_common_deps="libvirt-glib $_py-libxml2 py-urlgrabber py-ipaddr
$_py-libvirt $_py-requests $_py-urllib3 $_py-chardet
$_py-certifi $_py-idna $_py-gobject3"
makedepends="$depends_dev grep $_common_deps perl-dev file"
install=
depends="python3 $pkgname-common py3-configparser py3-libxml2"
_common_deps="libvirt-glib py3-gobject3 py3-requests spice-gtk vte3 libosinfo py3-cairo gtk-vnc>=0.5.2-r2"
makedepends="intltool grep glib"
subpackages="$pkgname-doc $pkgname-lang
$pkgname-common
virt-install:virt_install"
source="https://virt-manager.org/download/sources/virt-manager/virt-manager-$pkgver.tar.gz
dont-double-create-spice-display.patch"
source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
build() {
cd "$builddir"
python3 setup.py build
}
build() {
cd "$_builddir"
python2 setup.py build || return 1
check() {
cd "$builddir"
python3 setup.py check
}
package() {
cd "$_builddir"
python2 setup.py --no-update-icon-cache --no-compile-schemas \
install --prefix=/usr --root="$pkgdir" \
|| return 1
cd "$builddir"
python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "$pkgdir"
python3 -m compileall "${pkgdir}/usr/share/virt-manager"
python3 -O -m compileall "${pkgdir}/usr/share/virt-manager"
}
common() {
......@@ -46,7 +39,7 @@ common() {
mv "$pkgdir"/usr/share/virt-manager/virtcli \
"$pkgdir"/usr/share/virt-manager/virtconv \
"$pkgdir"/usr/share/virt-manager/virtinst \
"$subpkgdir"/usr/share/virt-manager || return 1
"$subpkgdir"/usr/share/virt-manager
}
virt_install() {
......@@ -56,12 +49,11 @@ virt_install() {
mv "$pkgdir"/usr/share/virt-manager/virt-install \
"$pkgdir"/usr/share/virt-manager/virt-clone \
"$pkgdir"/usr/share/virt-manager/virt-convert \
"$subpkgdir"/usr/share/virt-manager/ || return 1
"$subpkgdir"/usr/share/virt-manager/
mv "$pkgdir"/usr/bin/virt-install \
"$pkgdir"/usr/bin/virt-clone \
"$pkgdir"/usr/bin/virt-convert \
"$subpkgdir"/usr/bin/ || return 1
"$subpkgdir"/usr/bin/
}
sha512sums="e0da3b879ea33a8c394c33df85cadac4fbb9cfed65f9a904c5d9bf07232e29f8c96b5242e3f94cae390b7b5d7a20e1c25c3867962f0a39de40e71dc00013d32b virt-manager-1.5.1.tar.gz
a0ff9479328ac4845f00454d4fc78c5ffe825de1186c4d09d7d6a06ccbbc98d965a9b281395cc8a285bf16755a1a5519466d3a0c07c25cb726d093de46496864 dont-double-create-spice-display.patch"
sha512sums="48590ff58246e13b73c7ab741ca854bfebae27fb90a891168db5d3fac1d066cce603f83b8d993e70e387624f911fc8503abe488e7992bc50f49d7e980aed5afb virt-manager-2.1.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment