Package: xkeycaps
Version: 2.47-4.1
Tags: patch

Hi.

This is the patch I used when I NMU-ed xkeycaps to add the missing
desktop file.

Note, the debian/rules file should probably be simplified (for example
using dh), hardening should be enabled and the standards-version should
be updated to a recent version.  I did not do this now, to keep the NMU
changes to a minimum.
--
Happy hacking
Petter Reinholdtsen
diff -u xkeycaps-2.47/debian/changelog xkeycaps-2.47/debian/changelog
--- xkeycaps-2.47/debian/changelog
+++ xkeycaps-2.47/debian/changelog
@@ -1,3 +1,11 @@
+xkeycaps (2.47-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add XDG desktop menu entry (Closes: #659177).
+  * Raise debhelper compat level to 9.
+
+ -- Petter Reinholdtsen <p...@debian.org>  Thu, 18 Feb 2016 10:46:15 +0100
+
 xkeycaps (2.47-4) unstable; urgency=low
 
   * Build-Depend on xutils-dev instead of xutils. (Closes: #485551)
diff -u xkeycaps-2.47/debian/control xkeycaps-2.47/debian/control
--- xkeycaps-2.47/debian/control
+++ xkeycaps-2.47/debian/control
@@ -3,11 +3,11 @@
 Priority: optional
 Maintainer: Christoph Berg <m...@debian.org>
 Standards-Version: 3.7.2
-Build-Depends: debhelper (>> 4), libxaw7-dev | libxaw-dev, xutils-dev, xbitmaps
+Build-Depends: debhelper (>> 9), libxaw7-dev | libxaw-dev, xutils-dev, xbitmaps
 
 Package: xkeycaps
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
 Conflicts: xaw95 (<< 1.1-4), xaw3d (<< 1.3-6), nextawg (<< 0.5.2), nextaw (<< 0.8-2)
 Description: manipulate X11 keymaps (for xmodmap) graphically
  xkeycaps is a graphical front-end to xmodmap(1). It opens a window that looks
diff -u xkeycaps-2.47/debian/rules xkeycaps-2.47/debian/rules
--- xkeycaps-2.47/debian/rules
+++ xkeycaps-2.47/debian/rules
@@ -42,7 +42,7 @@
 binary-arch: build
 	dh_testdir
 	dh_testroot
-	dh_clean -k
+	dh_prep
 	dh_installdirs
 
 	make INSTALL="install -p" INSTALLFLAGS=$(INSTALLFLAGS) \
@@ -50,6 +50,7 @@
 		install
 	install -p -m 644 XKeyCaps.ad \
 		debian/xkeycaps/etc/X11/app-defaults/XKeyCaps
+	dh_install
 	dh_installdocs README
 	dh_installmenu
 	dh_installman xkeycaps.man
diff -u xkeycaps-2.47/debian/compat xkeycaps-2.47/debian/compat
--- xkeycaps-2.47/debian/compat
+++ xkeycaps-2.47/debian/compat
@@ -1,1 +1,1 @@
-4
+9
only in patch2:
unchanged:
--- xkeycaps-2.47.orig/debian/xkeycaps.desktop
+++ xkeycaps-2.47/debian/xkeycaps.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=xkeycaps
+Comment=manipulate X11 keymap layout (for xmodmap) graphically
+Exec=xkeycaps
+TryExec=xkeycaps
+Terminal=false
+Categories=Settings;DesktopSettings;
+StartupNotify=true
only in patch2:
unchanged:
--- xkeycaps-2.47.orig/debian/xkeycaps.install
+++ xkeycaps-2.47/debian/xkeycaps.install
@@ -0,0 +1 @@
+debian/xkeycaps.desktop usr/share/applications

Reply via email to