File geany-appstream.patch of Package geany
diff -Pdpru geany-1.37.orig/geany.appdata.xml.in geany-1.37/geany.appdata.xml.in
--- geany-1.37.orig/geany.appdata.xml.in 1970-01-01 03:00:00.000000000 +0300
+++ geany-1.37/geany.appdata.xml.in 2022-04-08 03:24:50.810277228 +0300
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<component>
+ <id type="desktop">geany.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Geany IDE</name>
+ <project_license>GPL-2.0+</project_license>
+ <summary>A fast and lightweight IDE using GTK+</summary>
+ <url type="homepage">http://geany.org/</url>
+ <description>
+ <p>Geany is a small and lightweight integrated development environment.
+It was developed to provide a small and fast IDE, which has only a
+few dependencies from other packages. Another goal was to be as
+independent as possible from a special Desktop Environment like KDE
+or GNOME. So it is using only the GTK2 toolkit and therefore you need
+only the GTK2 runtime libraries to run Geany.</p>
+ </description>
+ <screenshots>
+<!-- Screenshots need to be 16:9 ratio but the ones here from the main website are not. Please
+ change the links to point to appropriate 16:9 sized screenshots. -->
+ <screenshot type="default">
+ <image height="808" width="942">http://www.geany.org/uploads/Gallery/geany_main.png</image>
+ </screenshot>
+ <screenshot type="default">
+ <image height="808" width="942">http://www.geany.org/uploads/Gallery/geany_build.png</image>
+ </screenshot>
+ <screenshot type="default">
+ <image height="808" width="942">http://www.geany.org/uploads/Gallery/geany_vte.png</image>
+ </screenshot>
+ </screenshots>
+ <update_contact>badshah400@gmail.com</update_contact>
+ <translation type="gettext">geany</translation>
+</component>
diff -Pdpru geany-1.37.orig/Makefile.am geany-1.37/Makefile.am
--- geany-1.37.orig/Makefile.am 2020-10-25 20:36:23.000000000 +0300
+++ geany-1.37/Makefile.am 2022-04-08 03:20:58.043179498 +0300
@@ -15,6 +15,7 @@ WIN32_BUILD_FILES = \
EXTRA_DIST = \
autogen.sh \
scripts/gen-api-gtkdoc.py \
+ geany.appdata.xml.in \
geany.desktop.in \
geany.pc.in \
ChangeLog.pre-1-22 \
@@ -82,3 +83,11 @@ desktopdir = $(datadir)/applications
desktop_in_files = geany.desktop
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
+
+appdata_in_files = geany.appdata.xml.in
+
+appdatadir = $(datadir)/appdata
+nodist_appdata_DATA = geany.appdata.xml
+
+$(nodist_appdata_DATA): $(appdata_in_files) $(wildcard $(top_srcdir)/po/*.po)
+ $(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
diff -Pdpru geany-1.37.orig/po/POTFILES.in geany-1.37/po/POTFILES.in
--- geany-1.37.orig/po/POTFILES.in 2020-10-25 20:40:40.000000000 +0300
+++ geany-1.37/po/POTFILES.in 2022-04-08 03:25:55.675140467 +0300
@@ -1,5 +1,6 @@
# List of source files containing translatable strings.
+geany.appdata.xml.in
geany.desktop.in
data/geany.glade
src/about.c