Sync with desktop-base
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
TARGET_DIR = usr/share/icons/desktop-base
|
||||
TARGET_DIR_SCALABLE = $(TARGET_DIR)/scalable/emblems
|
||||
# Generic folder for alternatives
|
||||
TARGET_VENDOR = usr/share/icons/vendor
|
||||
# TODO remove installing to _legacy early in bullseye cycle
|
||||
TARGET_DIR_LEGACY = usr/share/icons/hicolor
|
||||
TARGET_DIR_SCALABLE_LEGACY = $(TARGET_DIR_LEGACY)/scalable/emblems
|
||||
|
||||
.PHONY: build clean install
|
||||
|
||||
EMBLEMS = $(basename $(wildcard *.svg))
|
||||
$(info Emblems: '$(EMBLEMS)')
|
||||
# TODO remove installing to _legacy early in bullseye cycle
|
||||
RESOLUTIONS := 64 128 256
|
||||
$(info Resolutions: '$(RESOLUTIONS)')
|
||||
RESOLUTIONS_LEGACY := 16 22 32 36 48 64 128 256
|
||||
$(info Legacy Resolutions: '$(RESOLUTIONS_LEGACY)')
|
||||
|
||||
# The build: target should depend on all PNGs to generate
|
||||
$(info $(foreach SVG,$(EMBLEMS),$(foreach RES,$(RESOLUTIONS_LEGACY),$(SVG)-$(RES)x$(RES).png)))
|
||||
build: $(foreach SVG,$(EMBLEMS),$(foreach RES,$(RESOLUTIONS_LEGACY),$(SVG)-$(RES)x$(RES).png))
|
||||
|
||||
# Dynamically add rules for PNG generation for each resolution, for each emblem file
|
||||
define SVG_TO_PNG_RULE
|
||||
$1-$2x$2.png: $1.svg
|
||||
rsvg-convert $$< -w $2 -h $2 -o $$@.raw
|
||||
optipng $$@.raw -out $$@
|
||||
endef
|
||||
$(foreach EMBLEM,$(EMBLEMS),$(foreach RES,$(RESOLUTIONS_LEGACY),$(eval $(call SVG_TO_PNG_RULE,$(EMBLEM),$(RES)))))
|
||||
|
||||
clean:
|
||||
rm -f *.png.raw
|
||||
rm -f *.png
|
||||
|
||||
install:
|
||||
# Install PNG icons for each resolution
|
||||
for RES in $(RESOLUTIONS) ; do \
|
||||
EMBLEMS_DIR=$(DESTDIR)/$(TARGET_DIR)/$${RES}x$${RES}/emblems ; \
|
||||
install -d $${EMBLEMS_DIR} ; \
|
||||
for EMBLEM in $(EMBLEMS) ; do \
|
||||
PNG_SOURCE=$${EMBLEM}-$${RES}x$${RES}.png ; \
|
||||
$(INSTALL_DATA) $${PNG_SOURCE} $${EMBLEMS_DIR}/$${EMBLEM}.png ; \
|
||||
done ; \
|
||||
done
|
||||
# Install SVG emblems in the scalable emblems dir
|
||||
for EMBLEM in $(EMBLEMS) ; do \
|
||||
EMBLEMS_DIR=$(DESTDIR)/$(TARGET_DIR_SCALABLE) ; \
|
||||
install -d $${EMBLEMS_DIR} ; \
|
||||
$(INSTALL_DATA) $${EMBLEM}.svg $${EMBLEMS_DIR}/ ; \
|
||||
done
|
||||
for EMBLEM in $(EMBLEMS) ; do \
|
||||
EMBLEMS_DIR=$(DESTDIR)/$(TARGET_DIR_SCALABLE_LEGACY) ; \
|
||||
install -d $${EMBLEMS_DIR} ; \
|
||||
$(INSTALL_DATA) $${EMBLEM}.svg $${EMBLEMS_DIR}/ ; \
|
||||
$(INSTALL_DATA) $${EMBLEM}.icon $${EMBLEMS_DIR}/ ; \
|
||||
done
|
||||
|
||||
include ../Makefile.inc
|
||||
@@ -0,0 +1,2 @@
|
||||
[Icon Data]
|
||||
DisplayName=Kali Dragon
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Shape_1_1_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="128px" height="128px" viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
|
||||
<g id="Shape_1">
|
||||
<g>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M105,49.231c0,0-7.605-8.588-21.259-12.83
|
||||
c7.722,3.14,14.724,7.311,20.007,12.912L105,49.231z M68.475,36.599l-0.784-2.416c-7.271-0.414-38.29,7.575-52.266,18.721
|
||||
c16.435-8.512,22.987-10.758,31.008-12.991C54.454,37.68,64.51,36.371,68.475,36.599z M99.827,76.382
|
||||
c20.441,3.578,22.827,18.001,22.827,18.001s-0.777-9.735-11.039-15.782c-10.263-6.046-20.47-6.768-27.515-6.906
|
||||
s-10.568-0.693-14.045-4.336c-5.474-6.665-3.364-11.521-2.575-13.963s4.094-7.919,10.48-8.321
|
||||
c7.248-0.342,8.261,0.805,11.253,1.861s11.03,4.585,12.117,5.091c-0.03,0.997-0.074,1.979,0.581,2.799
|
||||
c0.654,0.818,3.17,1.712,3.975,2.173c0.803,0.462,3.379,2.1,4.957,4.153c0.342-0.64,3.199-2.501,3.199-2.501
|
||||
s-0.684,0.015-2.277-0.58c-1.592-0.596-3.482-2.396-3.527-2.501s-0.074-0.269,0.297-0.343c0.283-0.238-0.356-1.012-0.639-1.295
|
||||
c-0.283-0.283-2.174-3.498-2.219-3.572s-0.06-0.149-0.193-0.238c-0.417-0.134-2.248,0.193-2.248,0.193s-1.439-1.063-3.77-3.901
|
||||
c0.015,0.522,0.057,0.396,0.41,2.188c-1.469-0.621-3.685-2.584-4.404-3.741c-0.029,0.607,0.281,1.596,0.281,1.596
|
||||
s-1.637-0.579-2.216-0.988c-0.579-0.41-1.673-1.705-1.673-1.705l0.037,0.988c0,0-6.445-2.893-10.143-3.075
|
||||
c-3.699-0.184-3.918,0.22-5.273-0.257c-6.005-1.721-6.407-4.833-6.92-6.737s-0.879-3.661,0-6.773c0,0-7.47-3.809-18.601-5.603
|
||||
s-30.025-2.014-40.497-1.428c29.842,0.073,46.941,4.613,56.792,8.714c0.769,4.321,3.441,10.692,4.833,13.768
|
||||
c-4.028,2.38-7.946,4.504-9.007,14.61c-1.062,10.105,7.469,16.66,16.697,16.843c9.228,0.184,14.061-0.256,22.738,5.603
|
||||
c8.679,5.858,14.274,18.526,15.003,27.004C117.994,99.125,113.195,85.258,99.827,76.382z M105.898,52.919
|
||||
c0.288,0.257,1.052,1.357,1.061,1.442c0.008,0.085,0.043,0.171-0.061,0.162c-0.102-0.009-0.755-0.451-0.956-0.734
|
||||
C105.688,53.43,105.898,52.919,105.898,52.919z M67.451,32.812c0,0-0.326-1.48-0.501-2.373c-1.546-0.283-35.156-0.37-61.604,5.877
|
||||
C30.924,33.029,45.182,31.418,67.451,32.812z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user