Control: tags -1 patch

Dear maintainer,

please find attached a patch that achieves the following:

* Add oneko.desktop file.
* Update menu file and add icon entries.
* Add imagemagick to Build-Depends and create new icons for the desktop
  and menu file. Add the newly created images to the clean file.
  (Closes: #737982)

The new desktop file also provides Action entries with whom you can
quickly execute the same commands that are already provided in the menu
file. Users of Gnome3 just need to install

https://extensions.gnome.org/extension/322/quicklists/

for example so that those actions can be accessed from Gnome Shell with
a right-click on the desktop icon.

Regards,

Markus
From 8c1a138473bf3304382d1fbdefd3c33fca86b38e Mon Sep 17 00:00:00 2001
From: Markus Koschany <[email protected]>
Date: Tue, 25 Mar 2014 13:23:56 +0100
Subject: [PATCH] fix 737982

---
 debian/changelog     | 11 +++++++++++
 debian/clean         |  3 +++
 debian/control       |  2 +-
 debian/install       |  6 +++++-
 debian/menu          | 21 +++++++++++++++------
 debian/oneko.desktop | 22 ++++++++++++++++++++++
 debian/rules         |  3 +++
 7 files changed, 60 insertions(+), 8 deletions(-)
 create mode 100644 debian/oneko.desktop

diff --git a/debian/changelog b/debian/changelog
index 615c2d9..c10e131 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+oneko (1.2.sakura.6-9.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add oneko.desktop file.
+  * Update menu file and add icon entries.
+  * Add imagemagick to Build-Depends and create new icons for the desktop and
+    menu file. Add the newly created images to the clean file.
+    (Closes: #737982)
+
+ -- Markus Koschany <[email protected]>  Tue, 25 Mar 2014 13:21:28 +0100
+
 oneko (1.2.sakura.6-9) unstable; urgency=low
 
   * debian/control, debian/compat, debian/rules
diff --git a/debian/clean b/debian/clean
index a3ee268..8ee9437 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,4 @@
 oneko
+oneko_cat.xpm
+oneko_dog.xpm
+oneko_stop.xpm
diff --git a/debian/control b/debian/control
index 8d8cb99..3c34b6d 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: oneko
 Section: games
 Priority: optional
 Maintainer: Ricardo Mones <[email protected]>
-Build-Depends: debhelper (>= 9), libx11-dev, libxext-dev
+Build-Depends: debhelper (>= 9), libx11-dev, libxext-dev, imagemagick
 Standards-Version: 3.9.4
 Homepage: http://www.daidouji.com/oneko/
 Vcs-Git: git://anonscm.debian.org/users/mones/oneko.git
diff --git a/debian/install b/debian/install
index 98bd6c9..b902ced 100644
--- a/debian/install
+++ b/debian/install
@@ -1 +1,5 @@
-oneko usr/games
+oneko                   usr/games
+oneko_cat.xpm           usr/share/pixmaps
+oneko_dog.xpm           usr/share/pixmaps
+oneko_stop.xpm          usr/share/pixmaps
+debian/oneko.desktop    usr/share/applications
diff --git a/debian/menu b/debian/menu
index 77b784b..47c33fb 100644
--- a/debian/menu
+++ b/debian/menu
@@ -1,6 +1,15 @@
-?package(oneko):needs="X11" section="Games/Toys" \
-  title="oneko/cat" command="oneko -fg black -bg white"
-?package(oneko):needs="X11" section="Games/Toys" \
-  title="oneko/dog" command="oneko -dog -fg black -bg white"
-?package(oneko):needs="X11" section="Games/Toys" \
-  title="oneko/stop" command="killall -TERM oneko"
+?package(oneko):needs="X11" \
+  section="Games/Toys" \
+  title="oneko/cat" \
+  command="oneko -fg black -bg white" \
+  icon="/usr/share/pixmaps/oneko_cat.xpm"
+?package(oneko):needs="X11" \
+  section="Games/Toys" \
+  title="oneko/dog" \
+  command="oneko -dog -fg black -bg white" \
+  icon="/usr/share/pixmaps/oneko_dog.xpm"
+?package(oneko):needs="X11" \
+  section="Games/Toys" \
+  title="oneko/stop" \
+  command="killall -TERM oneko" \
+  icon="/usr/share/pixmaps/oneko_stop.xpm"
diff --git a/debian/oneko.desktop b/debian/oneko.desktop
new file mode 100644
index 0000000..383480d
--- /dev/null
+++ b/debian/oneko.desktop
@@ -0,0 +1,22 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Oneko Cat
+Comment=a cat chases the cursor around the screen
+Comment[de]=eine Katze verfolgt den Cursor über den Bildschirm
+Exec=oneko -fg black -bg white
+Icon=oneko_cat
+Terminal=false
+Categories=Game;ActionGame;
+Keywords=neko;cat;dog;chase;cursor;mouse;
+Actions=Dog;Stop;
+
+[Desktop Action Dog]
+Exec=oneko -dog -fg black -bg white
+Name=Oneko Dog
+Icon=oneko_dog
+
+[Desktop Action Stop]
+Exec=killall -TERM oneko
+Name=Oneko STOP
+Icon=oneko_stop
diff --git a/debian/rules b/debian/rules
index fe0cbf3..3d0d3c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,9 @@ build-stamp:
 		-L/usr/X11R6/lib -I/usr/include/X11 \
 		-lX11 -lXext -lm -DSHAPE \
 		-o oneko
+	convert -monitor bitmaps/neko/awake.xbm oneko_cat.xpm
+	convert -monitor bitmaps/dog/awake_dog.xbm oneko_dog.xpm
+	convert -monitor bitmaps/neko/sleep1.xbm oneko_stop.xpm
 	touch build-stamp
 
 override_dh_auto_install:
-- 
1.9.1

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to