tags 737870 patch
thanks

Hello,

Here is a patch for this bug. Just pay attention to the patch of
debian/changelog (created from a "private" version of the package) and
maybe mention there that imagemagick was added to Build-Depends in order
to create the 32x32 XPM required according to
<https://wiki.debian.org/Games/JessieReleaseGoal>.

Regards

-- 
Florent
diff -ur a/changelog b/changelog
--- a/changelog	2014-03-11 01:04:57.000000000 +0100
+++ b/changelog	2014-03-12 16:22:28.000000000 +0100
@@ -1,3 +1,10 @@
+fgo (1.5.0-1~frougon2+deb7.0) stable; urgency=low
+
+  * Create a 32x32 version of the icon in XPM format, install it in
+    /usr/share/pixmaps and declare it in debian/menu (closes: #737870).
+
+ -- Florent Rougon <f.rou...@free.fr>  Wed, 12 Mar 2014 16:22:28 +0100
+
 fgo (1.5.0-1~frougon1+deb7.0) stable; urgency=low
 
   * Improve debian/patches/increase-font-sizes.patch: all font
diff -ur a/control b/control
--- a/control	2011-08-05 18:21:03.000000000 +0200
+++ b/control	2014-03-12 10:56:29.000000000 +0100
@@ -2,7 +2,7 @@
 Section: games
 Priority: extra
 Maintainer: Christopher Baines <cbain...@gmail.com>
-Build-Depends: debhelper (>= 8.9.3), python (>= 2.6.6-3~)
+Build-Depends: debhelper (>= 8.9.3), python (>= 2.6.6-3~), imagemagick
 Standards-Version: 3.9.2
 Homepage: http://sites.google.com/site/erobosprojects/flightgear/add-ons/fgo
 
diff -ur a/install b/install
--- a/install	2014-03-07 14:01:45.000000000 +0100
+++ b/install	2014-03-12 15:57:24.000000000 +0100
@@ -2,4 +2,4 @@
 data/ /usr/share/games/fgo/
 fgo /usr/share/games/fgo/
 debian/fgo.desktop /usr/share/applications
-
+debian/fgo.xpm /usr/share/pixmaps/
diff -ur a/menu b/menu
--- a/menu	2010-08-31 16:53:55.000000000 +0200
+++ b/menu	2014-03-12 16:18:52.000000000 +0100
@@ -2,5 +2,6 @@
  needs="X11"\
  section="Games/Simulation"\
  title="FGo!"\
+ icon="/usr/share/pixmaps/fgo.xpm"\
  command="fgo"\
  hints="Flightgear,Games"
diff -ur a/rules b/rules
--- a/rules	2011-08-06 17:10:27.000000000 +0200
+++ b/rules	2014-03-12 16:09:50.000000000 +0100
@@ -6,11 +6,19 @@
 %:
 	dh $@ --with python2
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f debian/fgo.xpm
+
+override_dh_auto_build:
+        # cf. https://wiki.debian.org/Games/JessieReleaseGoal
+	convert data/pics/icons/32x32/fgo.png debian/fgo.xpm
+
 override_dh_installdocs:
 	dh_installdocs
 	# Remove the licence, this infomation is stored in the debian/copyright file
 	rm debian/fgo/usr/share/doc/fgo/docs/COPYING
 	rm -f debian/fgo/usr/share/doc/fgo/docs/CHANGE_LOG
-	
+
 override_dh_installchangelogs:
 	dh_installchangelogs docs/CHANGE_LOG

Reply via email to