File desktop-and-appdata.patch of Package lincity
diff -Nur lincity-1.12.1/lincity.appdata.xml new/lincity.appdata.xml
--- lincity-1.12.1/lincity.appdata.xml 1970-01-01 01:00:00.000000000 +0100
+++ new/lincity.appdata.xml 2016-08-30 17:07:28.319553530 +0200
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2016 Ferdinand Thiessen <rpm@fthiessen.de> -->
+<component type="desktop">
+ <id>lincity.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <name>Lincity</name>
+ <summary>A City Simulation Game</summary>
+ <description>
+ <p>
+ Lincity is a city simulation game.
+ You are required to build and maintain a city.
+ You must feed, house, provide jobs and goods for your residents.
+ You can build a sustainable economy with the help of renewable energy and recycling,
+ or you can go for broke and build rockets to escape from a pollution ridden
+ and resource starved planet, it's up to you.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image>http://lincity.sourceforge.net/screenshots/power.png</image>
+ </screenshot>
+ <screenshot>
+ <image>http://lincity.sourceforge.net/screenshots/fire.png</image>
+ </screenshot>
+ <screenshot>
+ <image>http://lincity.sourceforge.net/screenshots/power+pollution.png</image>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">http://lincity.sourceforge.net/</url>
+</component>
diff -Nur lincity-1.12.1/lincity.desktop new/lincity.desktop
--- lincity-1.12.1/lincity.desktop 1970-01-01 01:00:00.000000000 +0100
+++ new/lincity.desktop 2007-01-15 15:21:38.000000000 +0100
@@ -0,0 +1,60 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Name=LinCity
+Name[cs]=LinCity
+Type=Application
+GenericName=Strategy Game
+GenericName[af]=Strategie Speletjie
+GenericName[be]=Стратэгічная гульня
+GenericName[bg]=Стратегическа Игра
+GenericName[bs]=Strateška igra
+GenericName[ca]=Joc d'estratègia
+GenericName[cs]=Strategická hra
+GenericName[da]=Strategispil
+GenericName[de]=Strategiespiel
+GenericName[el]=Παιχνίδι Στρατηγικής
+GenericName[eo]=Strategiludo
+GenericName[es]=Juego de estrategia
+GenericName[et]=Strateegiamäng
+GenericName[fa]=بازی استراتژیک
+GenericName[fi]=Strategiapeli
+GenericName[fo]=Strategispæl
+GenericName[fr]=Jeu de stratégie
+GenericName[he]=משחק אסטרטגיה
+GenericName[hr]=Igra strategije
+GenericName[hu]=stratégiai
+GenericName[is]=Herkænskuleikur
+GenericName[it]=Gioco di strategia
+GenericName[ja]=戦略ゲーム
+GenericName[lo]=ເກມກົນລະຍຸດ
+GenericName[lt]=Strateginis žaidimas
+GenericName[lv]=Stratēģiskā Game
+GenericName[mk]=Стратегиска игра
+GenericName[mn]=Стратегийн тоглоом
+GenericName[mt]=Logħba ta' strateġija
+GenericName[nb]=Strategispill
+GenericName[nl]=strategisch spel
+GenericName[nn]=Strategispel
+GenericName[nso]=Papadi ya Mokgwa wa Tharollo
+GenericName[pl]=Gra strategiczna
+GenericName[pt]=Jogo de Estratégia
+GenericName[pt_BR]=Estratégia
+GenericName[ro]=Joc de strategie
+GenericName[ru]=Стратегическая игра
+GenericName[se]=Strategiijaspeallu
+GenericName[sk]=Strategická hra
+GenericName[sl]=Strateška igra
+GenericName[ss]=Umdlalo wekusebentisa indlela yekwenta
+GenericName[sv]=Strategispel
+GenericName[th]=เกมกลยุทธ์
+GenericName[tr]=Strateji Oyunu
+GenericName[uk]=Гра на стратегію
+GenericName[ven]=Mutambo wa maitele awo
+GenericName[xh]=Indlela ethile Yomdlalo
+GenericName[zh_CN]=策略游戏
+GenericName[zh_TW]=策略遊戲
+GenericName[zu]=Umdlalo weplani
+Exec=lincity
+Icon=lincity
+Categories=Game;StrategyGame;
diff -Nur lincity-1.12.1/Makefile.am new/Makefile.am
--- lincity-1.12.1/Makefile.am 2003-11-20 07:18:34.000000000 +0100
+++ new/Makefile.am 2016-08-30 17:10:21.504751893 +0200
@@ -55,6 +55,14 @@
## nobase_pkgdata_DATA = help/* icons/* messages/ca/* messages/* opening/* colour.pal
nobase_pkgdata_DATA = help/* icons/* messages/* opening/* colour.pal
+desktopdir = $(datadir)/applications
+desktop_DATA = lincity.desktop
+
+appdatadir = $(datadir)/appdata
+appdata_DATA = lincity.appdata.xml
+
+pixmapsdir = $(datadir)/pixmaps
+pixmaps_DATA = icons/lincity.png
############################################################################
## INSTALL SCRIPTS