#!/usr/bin/make -f THEME_NAME = Conflux THEME_DIR = /usr/share/icons/$(THEME_NAME) DESTDIR = debian/conflux-icon-theme # The theme is a plain set of data files: nothing to configure, build or test. THEME_SOURCES = \ index.theme \ apps apps@2x \ devices devices@2x \ emblems emblems@2x \ mimes mimes@2x \ places places@2x \ preferences preferences@2x \ status status@2x %: dh $@ override_dh_auto_build: override_dh_auto_test: override_dh_auto_install: install -d $(DESTDIR)$(THEME_DIR) # -a keeps the ~2800 relative symlinks (including the @2x directory # symlinks) as symlinks instead of duplicating the icons. cp -a $(THEME_SOURCES) $(DESTDIR)$(THEME_DIR)/ # Upstream ships symlinks pointing into actions/16, places/16 and # places/22, which are not part of the theme; a binary package must not # contain dangling symlinks. find $(DESTDIR)$(THEME_DIR) -xtype l -delete # Generated at runtime by the dh_icons trigger, never shipped. rm -f $(DESTDIR)$(THEME_DIR)/icon-theme.cache # Upstream files are group-writable. chmod -R a+rX,u+w,go-w $(DESTDIR)$(THEME_DIR)