#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2023 Jim Klimov
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)/nut-monitor-gui-common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY) - NUT-Monitor GUI client (common components)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

<transform dir path=usr/share/nut/nut-monitor -> set group bin>
<transform dir path=usr/share/nut/nut-monitor/(.*) -> set group bin>

### NUT GUI clients, require python3+QT5
depend type=require fmri=library/python/pyqt5
depend type=require fmri=runtime/python-$(PYV)

# The exposed binary is a dispatcher script which evaluates the
# run-time enviroment and launches the suitable implementation
# (delivered by another package)
file path=usr/bin/NUT-Monitor mode=0555

dir path=usr/share/nut/nut-monitor
dir path=usr/share/nut/nut-monitor/app
dir path=usr/share/nut/nut-monitor/app/icons
dir path=usr/share/nut/nut-monitor/app/icons/48x48
dir path=usr/share/nut/nut-monitor/app/icons/64x64
dir path=usr/share/nut/nut-monitor/app/icons/256x256
dir path=usr/share/nut/nut-monitor/app/icons/scalable
dir path=usr/share/nut/nut-monitor/app/locale
dir path=usr/share/nut/nut-monitor/app/locale/fr
dir path=usr/share/nut/nut-monitor/app/locale/fr/LC_MESSAGES
dir path=usr/share/nut/nut-monitor/app/locale/it
dir path=usr/share/nut/nut-monitor/app/locale/it/LC_MESSAGES
dir path=usr/share/nut/nut-monitor/app/locale/ru
dir path=usr/share/nut/nut-monitor/app/locale/ru/LC_MESSAGES
dir path=usr/share/nut/nut-monitor/app/pixmaps
dir path=usr/share/nut/nut-monitor/app/screenshots

file path=usr/share/nut/nut-monitor/README
file path=usr/share/nut/nut-monitor/app/NUT-Monitor mode=0555
file path=usr/share/nut/nut-monitor/app/README
file path=usr/share/nut/nut-monitor/app/icons/256x256/nut-monitor.png
file path=usr/share/nut/nut-monitor/app/icons/48x48/nut-monitor.png
file path=usr/share/nut/nut-monitor/app/icons/64x64/nut-monitor.png
file path=usr/share/nut/nut-monitor/app/icons/scalable/nut-monitor.svg
file path=usr/share/nut/nut-monitor/app/locale/fr/LC_MESSAGES/NUT-Monitor.mo
file path=usr/share/nut/nut-monitor/app/locale/it/LC_MESSAGES/NUT-Monitor.mo
file path=usr/share/nut/nut-monitor/app/locale/ru/LC_MESSAGES/NUT-Monitor.mo
file path=usr/share/nut/nut-monitor/app/nut-monitor.appdata.xml
link path=usr/share/metainfo/nut-monitor.appdata.xml \
    target=../nut/nut-monitor/app/nut-monitor.appdata.xml
file path=usr/share/nut/nut-monitor/app/nut-monitor.desktop
link path=usr/share/applications/nut-monitor.desktop \
    target=../nut/nut-monitor/app/nut-monitor.desktop
file path=usr/share/nut/nut-monitor/app/pixmaps/on_battery.png
file path=usr/share/nut/nut-monitor/app/pixmaps/on_line.png
file path=usr/share/nut/nut-monitor/app/pixmaps/var-ro.png
file path=usr/share/nut/nut-monitor/app/pixmaps/var-rw.png
file path=usr/share/nut/nut-monitor/app/pixmaps/warning.png
file path=usr/share/nut/nut-monitor/app/screenshots/nut-monitor-1.png
file path=usr/share/nut/nut-monitor/app/screenshots/nut-monitor-2.png
file path=usr/share/nut/nut-monitor/app/screenshots/nut-monitor-3.png