45 lines
1.7 KiB
Bash
45 lines
1.7 KiB
Bash
# Template file for 'virt-manager'
|
|
pkgname=virt-manager
|
|
version=3.2.0
|
|
revision=1
|
|
build_style=python3-module
|
|
pycompile_dirs="/usr/share/${pkgname}/virtManager"
|
|
hostmakedepends="gettext python3-docutils gtk-update-icon-cache"
|
|
depends="virt-manager-tools>=${version}_${revision} libvirt-glib
|
|
gtk-vnc spice-gtk gtksourceview4 dconf vte3 gir-freedesktop"
|
|
_coredeps="python3-gobject libvirt-python3 libosinfo
|
|
libxml2-python3 python3-requests cdrtools"
|
|
checkdepends="python3-pytest cpio ${_coredeps}"
|
|
short_desc="User interface for managing virtual machines"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://virt-manager.org"
|
|
changelog="https://raw.githubusercontent.com/virt-manager/virt-manager/master/NEWS.md"
|
|
distfiles="https://virt-manager.org/download/sources/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=2b6fe3d90d89e1130227e4b05c51e6642d89c839d3ea063e0e29475fd9bf7b86
|
|
python_version=3
|
|
|
|
post_install() {
|
|
rm $DESTDIR/usr/share/glib-2.0/schemas/gschemas.compiled \
|
|
$DESTDIR/usr/share/icons/hicolor/icon-theme.cache
|
|
}
|
|
|
|
virt-manager-tools_package() {
|
|
short_desc="Programs to create and clone virtual machines"
|
|
depends="${_coredeps} python3-argcomplete"
|
|
pycompile_dirs="/usr/share/${sourcepkg}/virtinst"
|
|
python_version=3
|
|
pkg_install() {
|
|
vmove usr/bin/virt-clone
|
|
vmove usr/bin/virt-install
|
|
vmove usr/bin/virt-xml
|
|
vmove usr/share/man/man1/virt-install.1
|
|
vmove usr/share/man/man1/virt-clone.1
|
|
vmove usr/share/man/man1/virt-xml.1
|
|
vmove usr/share/virt-manager/virtinst
|
|
vmove usr/share/bash-completion/completions/virt-install
|
|
vmove usr/share/bash-completion/completions/virt-clone
|
|
vmove usr/share/bash-completion/completions/virt-xml
|
|
}
|
|
}
|