#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all DEST_DIR=$(CURDIR)/debian/tmp/usr ICON_DIR=$(CURDIR)/debian/frozen-bubble-data/usr/share/games/frozen-bubble %: dh $@ override_dh_install: # remove man page with not really interesting doc for i in Net MDKCommon LevelEditor Stuff ; do \ rm $(DEST_DIR)/share/man/man3/Games::FrozenBubble::$$i.3pm* ; \ done # copy icons to correct destinations cd share/icons && \ for i in frozen-bubble-icon-*.png; do \ size=$${i%.png}; size=$${size#frozen-bubble-icon-}; \ dirname=../../debian/tmp/usr/share/icons/hicolor/"$$size"/apps; \ mkdir -p $$dirname; \ cp "$$i" $$dirname/frozen-bubble.png; \ done dh_install override_dh_strip_nondeterminism: find $(ICON_DIR) -type f -name '*.png' -print0 | xargs -r0 chmod +w dh_strip_nondeterminism