#!/usr/bin/make -f %: dh "$@" FA_FONTCUSTOM_OUTPUT_DIR = src/icons/forkawesome FA_ROOT_FONTS_DIR = fonts override_dh_auto_build: mkdir -p ${FA_ROOT_FONTS_DIR} @echo "Compiling Icons into a ForkAwesome fonts..." # FontForge embeds the current time and the building user into SVG fonts # it generates, which makes the build non-reproducible. Pin them to fixed # values: TZ (the timestamp is rendered via localtime()), USER (the # "By " comment would otherwise leak the builder's login) and # LC_ALL (to avoid locale-dependent output). cd src/icons && \ TZ=UTC LC_ALL=C USER=debian-fonts fontcustom compile @echo "Copying builds to root folder (package release)..." cp ${FA_FONTCUSTOM_OUTPUT_DIR}/forkawesome.eot ${FA_ROOT_FONTS_DIR}/forkawesome-webfont.eot cp ${FA_FONTCUSTOM_OUTPUT_DIR}/forkawesome.svg ${FA_ROOT_FONTS_DIR}/forkawesome-webfont.svg cp ${FA_FONTCUSTOM_OUTPUT_DIR}/forkawesome.ttf ${FA_ROOT_FONTS_DIR}/forkawesome-webfont.ttf cp ${FA_FONTCUSTOM_OUTPUT_DIR}/forkawesome.woff ${FA_ROOT_FONTS_DIR}/forkawesome-webfont.woff cp ${FA_FONTCUSTOM_OUTPUT_DIR}/forkawesome.woff2 ${FA_ROOT_FONTS_DIR}/forkawesome-webfont.woff2 dh_auto_build override_dh_auto_clean: rm -rf ${FA_FONTCUSTOM_OUTPUT_DIR} rm -rf ${FA_ROOT_FONTS_DIR} rm -f .fontcustom-manifest.json dh_auto_clean