Rename emblems-debian directory into emblems

This commit is contained in:
Raphaël Hertzog
2019-11-01 17:57:31 +01:00
parent afc63a7182
commit b92728c0de
19 changed files with 10 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
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
# TODO remove installing to _legacy early in bullseye cycle
for RES in $(RESOLUTIONS_LEGACY) ; do \
EMBLEMS_DIR=$(DESTDIR)/$(TARGET_DIR_LEGACY)/$${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 ; \
$(INSTALL_DATA) $${EMBLEM}.icon $${EMBLEMS_DIR}/ ; \
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
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

+2
View File
@@ -0,0 +1,2 @@
[Icon Data]
DisplayName=Kali Dragon
+3
View File
@@ -0,0 +1,3 @@
<svg id="Shape_1_1_" enable-background="new 0 0 128 128" version="1.1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">
<path d="m67.773 34.639s-9.5543-0.63575-25.824 4.4553c-16.581 5.1881-25.985 12.542-25.985 12.542s24.713-13.798 52.608-14.582zm35.637 15.003 1.2421-0.08106s-7.1164-8.6344-20.738-12.84c7.6569 3.1125 14.322 7.2365 19.496 12.921zm2.0328 3.5875c0.19097-0.33111 0.80745 1.0519 1.2756 1.6329 0.0198 0.11602 0.0527 0.18681-0.21868 0.13097-0.0229-0.11926-0.0622-0.15385-0.0622-0.15385s-0.65519-0.38984-0.85607-0.66637c-0.20103-0.27653-0.23671-0.76023-0.13871-0.94363zm16.716 41.101s1.5107-17.345-25.739-21.343c-3.4538-0.50676-7.8216-0.89678-12.24-0.90796-21.841 0.28878-22.637-25.191-6.1792-26.476 6.8207-0.56279 14.965 3.1166 22.928 6.8244-0.0296 0.98884 0.0113 1.8676 0.66098 2.6796 0.64944 0.81176 3.1443 1.6974 3.9415 2.1548 0.79717 0.45758 3.351 2.0813 4.916 4.1182 0.33938-0.63485 3.1737-2.4798 3.1737-2.4798s-0.67898 0.01478-2.2585-0.57558c-1.5798-0.59035-3.4544-2.3765-3.4987-2.4798-0.0443-0.1034-0.0738-0.26572 0.29545-0.33958 0.28031-0.236-0.35454-1.0036-0.63504-1.2839-0.28031-0.28049-2.1553-3.4686-2.1994-3.5425-0.0442-0.07386-0.0592-0.14754-0.19186-0.23618-0.41345-0.13295-2.2292 0.19186-2.2292 0.19186s-2.7925-1.3715-3.755-4.3285c0.014 0.51793-0.47884 1.0834 0 2.2733-1.456-0.61594-2.7066-1.6664-3.6931-4.2624-0.58711 1.4765 0 2.4153 0 2.4153s-3.4286-0.95804-3.9772-4.12c-0.60207 1.4194 0 2.2731 0 2.2731s-5.5895-2.9165-14.877-2.9588c-6.2181-0.57036-7.5126-11.509-6.9365-13.351 0 0-8.9688-4.7268-26.624-6.8151-17.655-2.0885-32.134-0.31472-32.134-0.31472s31.269-1.5007 56.319 8.6409c0.85158 3.8087 3.4133 10.152 4.7931 13.202-3.948 2.7296-8.4 5.2964-9.0933 14.4-0.69304 9.1032 7.1336 17.111 16.839 17.358 9.2159 0.4909 15.583 0.56063 23.302 4.5619 7.3669 4.0734 13.407 16.485 14.005 27.648 0.64565-8.2824-2.4625-26.093-16.967-31.501 20.272 3.5475 22.055 18.576 22.055 18.576zm-54.864-61.051-0.72943-2.3528s-12.036-2.1373-28.218-0.98704c-16.182 1.1503-32.521 6.8149-32.521 6.8149s33.431-8.4121 61.468-3.4751" fill="#fff"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB