[playonlinux] 185/230: Provide a complete menu entry, with a xpm icon.

Bertrand Marc bmarc at moszumanska.debian.org
Sun Jul 9 17:42:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

bmarc pushed a commit to branch master
in repository playonlinux.

commit 274355b6c5d458cd3694a7e4ee67031be1301d09
Author: Bertrand Marc <beberking at gmail.com>
Date:   Wed Jan 22 19:35:31 2014 +0000

    Provide a complete menu entry, with a xpm icon.
---
 debian/changelog           | 11 +++++++++--
 debian/control             |  2 +-
 debian/menu                |  3 ++-
 debian/playonlinux.install |  2 +-
 debian/rules               |  3 +++
 5 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1ee685a..3771e7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-playonlinux (4.2.1-2) UNRELEASED; urgency=low
+playonlinux (4.2.2-1) UNRELEASED; urgency=low
 
   [ Evgeni Golov ]
   * Correct Vcs-* URLs to point to anonscm.debian.org
@@ -6,7 +6,14 @@ playonlinux (4.2.1-2) UNRELEASED; urgency=low
   [ Jackson Doak ]
   * debian/control: Bump curl from Suggests to Depends. Closes: #716889
 
- -- Jackson Doak <noskcaj at ubuntu.com>  Sat, 21 Sep 2013 18:35:00 +1000
+  [ Bertrand Marc ]
+  * Provide a complete menu file:
+    + build-depend on imagemagick.
+    + use convert to build a xpm icon in override_dh_auto_build-indep.
+    + copy the xpm icon to /usr/share/pixmaps/.
+    + add an icon entry in the menu file (Closes: #727030).
+
+ -- Bertrand Marc <beberking at gmail.com>  Wed, 22 Jan 2014 19:47:02 +0100
 
 playonlinux (4.2.1-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 81ccb85..26c43c2 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: contrib/otherosfs
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Bertrand Marc <beberking at gmail.com>
-Build-Depends: debhelper (>= 8), python
+Build-Depends: debhelper (>= 8), python, imagemagick
 Standards-Version: 3.9.4
 Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/playonlinux/
 Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/playonlinux/
diff --git a/debian/menu b/debian/menu
index bda151f..2fadfdc 100644
--- a/debian/menu
+++ b/debian/menu
@@ -1,2 +1,3 @@
 ?package(playonlinux):needs="X11" section="Applications/Emulators"\
-  title="PlayOnLinux" command="/usr/bin/playonlinux"
+  title="PlayOnLinux" command="/usr/bin/playonlinux" \
+  icon="/usr/share/pixmaps/playonlinux.xpm"
diff --git a/debian/playonlinux.install b/debian/playonlinux.install
index a2de0cd..176afab 100644
--- a/debian/playonlinux.install
+++ b/debian/playonlinux.install
@@ -13,7 +13,7 @@ playonlinux usr/share/playonlinux/
 playonlinux-bash usr/share/playonlinux/
 playonlinux-pkg usr/share/playonlinux/
 playonlinux-shell usr/share/playonlinux/
-etc/playonlinux*.png usr/share/pixmaps/
+etc/playonlinux*.png playonlinux.xpm usr/share/pixmaps/
 debian/PlayOnLinux.desktop usr/share/applications/
 debian/bin/playonlinux usr/bin/
 debian/bin/playonlinux-pkg usr/bin/
diff --git a/debian/rules b/debian/rules
index 87904b3..d8af9e1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,9 @@
 %:
 	dh $@ --with python2
 
+override_dh_auto_build-indep:
+	convert -monitor -resize 32x32 $(CURDIR)/etc/playonlinux.png $(CURDIR)/playonlinux.xpm
+
 override_dh_install:
 	dh_install
 	chmod +x debian/playonlinux/usr/share/playonlinux/bash/startup_after_server

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/playonlinux.git



More information about the Pkg-games-commits mailing list