1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/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) -v $(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
|