diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/misc/Makefile.am | 20 | ||||
-rw-r--r-- | share/misc/hexchat.appdata.xml | 12 | ||||
-rw-r--r-- | share/misc/htm-mime.xml | 8 | ||||
-rw-r--r-- | share/misc/htm.desktop | 7 |
4 files changed, 47 insertions, 0 deletions
diff --git a/share/misc/Makefile.am b/share/misc/Makefile.am index eec37250..ef14c01e 100644 --- a/share/misc/Makefile.am +++ b/share/misc/Makefile.am @@ -1,3 +1,23 @@ util_DATA = hexchat.desktop utildir = $(datadir)/applications +appdata_DATA = hexchat.appdata.xml +appdatadir = $(datadir)/appdata + + +if WITH_TM +util_DATA += htm.desktop +mime_DATA = htm-mime.xml +mimedir = $(datadir)/mime/packages + +UPDATE_MIME_DATABASE = update-mime-database "$(datadir)/mime" || : +UPDATE_DESKTOP_DATABASE = update-desktop-database -q "$(datadir)/applications" || : + +install-data-hook: + $(UPDATE_MIME_DATABASE); + $(UPDATE_DESKTOP_DATABASE); + +uninstall-hook: + $(UPDATE_MIME_DATABASE); + $(UPDATE_DESKTOP_DATABASE); +endif diff --git a/share/misc/hexchat.appdata.xml b/share/misc/hexchat.appdata.xml new file mode 100644 index 00000000..e7eab96e --- /dev/null +++ b/share/misc/hexchat.appdata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<application> + <id type="desktop">hexchat.desktop</id> + <licence>CC0</licence> + <description> + <p>HexChat is a easy to use yet extensible IRC Client.</p> + <p>It supports features such as: DCC, SASL, proxies, spellcheck, and Python/Perl scripts.</p> + </description> + <url type="homepage">http://hexchat.github.io</url> + <updatecontact>tingping_at_fedoraproject.org</updatecontact> +</application> + diff --git a/share/misc/htm-mime.xml b/share/misc/htm-mime.xml new file mode 100644 index 00000000..f76b689b --- /dev/null +++ b/share/misc/htm-mime.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> + <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> + <mime-type type="application/x-hct"> + <comment>HexChat theme archives</comment> + <icon name="hexchat" /> + <glob pattern="*.hct" weight="100" /> + </mime-type> + </mime-info> diff --git a/share/misc/htm.desktop b/share/misc/htm.desktop new file mode 100644 index 00000000..53cac289 --- /dev/null +++ b/share/misc/htm.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=HexChat Theme Manager +Exec=thememan %f +Icon=hexchat +Terminal=false +Type=Application +MimeType=application/x-hct; |