From c7d476536a48efccb8d1d3a844de255fe4fe902c Mon Sep 17 00:00:00 2001
From: Mike Molina
Date: Fri, 24 Feb 2023 19:01:04 -0500
Subject: [PATCH] Inclusion of desktop and metadata files for the GUI
application and its installation environment
---
desktopfiles/Makefile | 38 +++++++++++++++++++++++
desktopfiles/xephem.desktop | 13 ++++++++
desktopfiles/xephem.metainfo.xml | 53 ++++++++++++++++++++++++++++++++
3 files changed, 104 insertions(+)
create mode 100644 desktopfiles/Makefile
create mode 100644 desktopfiles/xephem.desktop
create mode 100644 desktopfiles/xephem.metainfo.xml
diff --git a/desktopfiles/Makefile b/desktopfiles/Makefile
new file mode 100644
index 0000000..5b1c7b7
--- /dev/null
+++ b/desktopfiles/Makefile
@@ -0,0 +1,38 @@
+# Makefile for manage desktop files
+# Requires utility 'convert' of the package ImageMagick.
+
+CONVERT = convert
+
+SRCPNGICON = ../GUI/xephem/XEphem.png
+PNGICONS = \
+ 32x32/apps/xephem.png \
+ 48x48/apps/xephem.png \
+ 64x64/apps/xephem.png \
+ 128x128/apps/xephem.png
+DESKTOPFILE = xephem.desktop
+METAINFOFILE = xephem.metainfo.xml
+
+iconsdir = $(DESTDIR)$(datadir)/icons/hicolor
+applicationsdir = $(DESTDIR)$(datadir)/applications
+metainfodir = $(DESTDIR)$(datadir)/metainfo
+
+
+all:
+
+install: install-icons install-desktopfile install-metainfo
+
+install-icons: $(PNGICONS)
+
+$(PNGICONS): $(SRCPNGICON)
+ @d=$(iconsdir)/$(shell dirname $@); \
+ s=$(shell echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'); \
+ echo "install -m 755 -d $$d"; \
+ install -m 755 -d $$d; \
+ echo "convert -geometry $${s}x$${s} -depth 8 -background none $< $(iconsdir)/$@"; \
+ $(CONVERT) -geometry $${s}x$${s} -depth 8 -background none $< $(iconsdir)/$@
+
+install-desktopfile:
+ install -Dm 644 $(DESKTOPFILE) -t $(applicationsdir)
+
+install-metainfo:
+ install -Dm 644 $(METAINFOFILE) -t $(metainfodir)
diff --git a/desktopfiles/xephem.desktop b/desktopfiles/xephem.desktop
new file mode 100644
index 0000000..12dbe88
--- /dev/null
+++ b/desktopfiles/xephem.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=XEphem
+GenericName=X Window Ephemeris
+GenericName[es]=Ventana X de Efemérides
+Comment=Interactive astronomical ephemeris software
+Comment[es]=Software Interactivo de efemérides astrónomicas
+Exec=xephem
+Icon=xephem
+Terminal=false
+Categories=Science;Astronomy;Motif;
+Keywords=Astronomy;
diff --git a/desktopfiles/xephem.metainfo.xml b/desktopfiles/xephem.metainfo.xml
new file mode 100644
index 0000000..d2dca34
--- /dev/null
+++ b/desktopfiles/xephem.metainfo.xml
@@ -0,0 +1,53 @@
+
+
+
+ xephem.desktop
+ XEphem
+ XEphem
+ Interactive astronomical ephemeris software
+ Software interactivo de efemérides astronómicas
+ MIT
+ MIT
+
+
+
+ - XEphem is an interactive astronomy program for all UNIX platforms, written and maintained by _Elwood Downey_ over more than thirty years 1990–2021 and now generously released under the MIT License.
+ - XEphem can compute information on demand or time can be set to increment automatically. In this way a series of computations and movies can be generated.
+
+
+
+
+ - XEphem es un programa de astronomía interactivo para todas las plataformas UNIX, escrito y mantenido por _Elwood Downey_ durante más de treinta años entre 1990 y 2021 y ahora publicado generosamente bajo la licencia MIT.
+ - XEphem puede calcular información bajo demanda o se puede configurar automáticamente en el tiempo. De esta forma se pueden generar una serie de cálculos y animaciones.
+
+
+
+ xephem.desktop
+ https://xephem.github.io/XEphem/Site/xephem.html
+ https://xephem.github.io/XEphem/Site/help/xephem.html
+ xephem@ClearSkyInstitute.com
+ Elwood Charles Downey
+
+
+
+
+ xephem
+
+
+
+ https://raw.githubusercontent.com/XEphem/XEphem/main/GUI/xephem/help/png/sky-view.png
+ Highly configurable interactive Sky View.
+ Vista del cielo interactivo altamente configurable.
+
+
+ https://raw.githubusercontent.com/XEphem/XEphem/main/GUI/xephem/help/png/solsys.png
+ 3D projection and true stereo views of the solar system, perfect for visualizing comet paths.
+ Proyecciones 3D y vistas estereográficas reales del sistema solar, perfectas para visualizar trayectorias de cometas.
+
+
+ https://raw.githubusercontent.com/XEphem/XEphem/main/GUI/xephem/help/png/sun-view.png
+ Near real-time Solar images from the SOHO spacecraft.
+ Imágenes solares en tiempo real desed la nave espacial SOHO.
+
+
+