mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 04:25:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,77 @@
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=virt-manager
|
||||
PKG_VERSION:=5.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://releases.pagure.org/virt-manager/
|
||||
PKG_HASH:=skip
|
||||
|
||||
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>
|
||||
PKG_LICENSE:=LGPL-2.1-or-later
|
||||
PKG_LICENSE_FILES:=COPYING COPYING.LESSER
|
||||
PKG_CPE_ID:=cpe:/a:virt-manager:virt-manager
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/meson.mk
|
||||
|
||||
define Package/virt-manager/Default
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=+libvirt-glib +qemu-img +libvirt-python +libxml2-python
|
||||
TITLE:=GUI for managing virtual machines
|
||||
URL:=https://virt-manager.org/
|
||||
|
||||
endef
|
||||
|
||||
define Package/virt-manager
|
||||
$(call Package/virt-manager/Default)
|
||||
DEPENDS+= +libosinfo +python3-gobject
|
||||
VARIANT:=normal
|
||||
DEFAULT_VARIANT:=1
|
||||
endef
|
||||
|
||||
define Package/virt-manager/description
|
||||
The virt-manager application is a desktop user interface for managing virtual machines through libvirt.
|
||||
endef
|
||||
|
||||
define Package/virt-manager-nogir
|
||||
$(call Package/virt-manager/Default)
|
||||
TITLE+= (without GObject Introspection)
|
||||
VARIANT:=nogir
|
||||
CONFLICTS:=virt-manager
|
||||
endef
|
||||
|
||||
define Package/virt-manager-nogir/description
|
||||
$(call Package/virt-manager/description)
|
||||
This variant is built without GObject Introspection support.
|
||||
endef
|
||||
|
||||
ifeq ($(BUILD_VARIANT),nogir)
|
||||
define Build/Prepare
|
||||
$(Build/Prepare/Default)
|
||||
$(call PatchDir,$(PKG_BUILD_DIR),$(PATCH_DIR)-nogir,nogir/)
|
||||
endef
|
||||
endif
|
||||
|
||||
MESON_ARGS += \
|
||||
-Dupdate-icon-cache=false \
|
||||
-Dcompile-schemas=false \
|
||||
-Dupdate-icon-cache=false
|
||||
|
||||
define Package/virt-manager/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/usr/share/virt-manager
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/virt-manager/virtinst $(1)/usr/share/virt-manager
|
||||
ifeq ($(BUILD_VARIANT),nogir)
|
||||
$(CP) ./files/Libosinfo.py $(1)/usr/share/virt-manager/virtinst/
|
||||
endif
|
||||
endef
|
||||
|
||||
Package/virt-manager-nogir/install=$(Package/virt-manager/install)
|
||||
|
||||
$(eval $(call BuildPackage,virt-manager))
|
||||
$(eval $(call BuildPackage,virt-manager-nogir))
|
||||
Reference in new issue
Block a user