File geany-appstream.patch of Package geany
diff -ruN geany-2.0.orig/geany.appdata.xml.in geany-2.0/geany.appdata.xml.in
--- geany-2.0.orig/geany.appdata.xml.in 1970-01-01 01:00:00.000000000 +0100
+++ geany-2.0/geany.appdata.xml.in 2023-10-20 08:10:08.027741216 +0200
@@ -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 -ruN geany-2.0.orig/Makefile.am geany-2.0/Makefile.am
--- geany-2.0.orig/Makefile.am 2023-10-20 08:09:57.740979647 +0200
+++ geany-2.0/Makefile.am 2023-10-20 08:14:23.220095653 +0200
@@ -17,6 +17,7 @@
scripts/gen-api-gtkdoc.py \
scripts/gen-signallist.sh \
scripts/print-tags.py \
+ geany.appdata.xml.in \
geany.desktop.in \
geany.pc.in \
ChangeLog.pre-1-22 \
@@ -80,3 +81,12 @@
$(desktop_DATA): $(desktop_in_files) $(wildcard $(top_srcdir)/po/*.po)
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
+
+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 -ruN geany-2.0.orig/po/POTFILES.in geany-2.0/po/POTFILES.in
--- geany-2.0.orig/po/POTFILES.in 2023-10-20 08:09:57.810980295 +0200
+++ geany-2.0/po/POTFILES.in 2023-10-20 08:10:08.027741216 +0200
@@ -1,5 +1,6 @@
# List of source files containing translatable strings.
+geany.appdata.xml.in
geany.desktop.in
data/geany.glade
src/about.c