Package: hedgewars Version: 0.9.15-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following: * debian/{control,rules,hedgewars-data.install}: extract and install high quality icons for .desktop file (LP: #739760). Thanks for considering the patch. -Kees -- System Information: Debian Release: squeeze/sid APT prefers natty APT policy: (500, 'natty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-7-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru hedgewars-0.9.15/debian/changelog hedgewars-0.9.15/debian/changelog diff -Nru hedgewars-0.9.15/debian/control hedgewars-0.9.15/debian/control --- hedgewars-0.9.15/debian/control 2010-11-14 12:46:47.000000000 -0800 +++ hedgewars-0.9.15/debian/control 2011-04-08 13:31:07.000000000 -0700 @@ -7,6 +7,7 @@ libqt4-dev (>= 4.2), fp-compiler, libsdl1.2-dev, libsdl-ttf2.0-dev, libsdl-mixer1.2-dev, libsdl-image1.2-dev, libsdl-net1.2-dev, bzip2, fp-units-gfx, + icnsutils, ghc6, libghc6-stm-dev, libghc6-network-dev, libghc6-utf8-string-dev, libghc6-time-dev, libghc6-dataenc-dev, libghc6-hslogger-dev, liblua5.1-dev diff -Nru hedgewars-0.9.15/debian/hedgewars-data.install hedgewars-0.9.15/debian/hedgewars-data.install --- hedgewars-0.9.15/debian/hedgewars-data.install 2010-11-14 12:29:22.000000000 -0800 +++ hedgewars-0.9.15/debian/hedgewars-data.install 2011-04-08 13:49:11.000000000 -0700 @@ -1 +1,2 @@ debian/tmp/usr/share/games/hedgewars /usr/share/games/ +debian/tmp/usr/share/icons/* /usr/share/icons/ diff -Nru hedgewars-0.9.15/debian/rules hedgewars-0.9.15/debian/rules --- hedgewars-0.9.15/debian/rules 2010-11-14 12:32:37.000000000 -0800 +++ hedgewars-0.9.15/debian/rules 2011-04-08 13:54:05.000000000 -0700 @@ -7,3 +7,12 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/cmake.mk +ICONS_DIR = debian/tmp/usr/share/icons/hicolor + +common-install-indep:: + for size in 16x16 32x32 128x128 256x256; do \ + mkdir -p $(ICONS_DIR)/$$size/apps/; \ + icns2png -x misc/Icon.icns -s $$size -o $(ICONS_DIR)/$$size/apps/; \ + mv $(ICONS_DIR)/$$size/apps/Icon_$${size}x32.png \ + $(ICONS_DIR)/$$size/apps/hedgewars.png; \ + done