From 680071202ea6e0010cb5f81cdb6122d113d17606 Mon Sep 17 00:00:00 2001 From: jD91mZM2 Date: Mon, 23 Apr 2018 11:40:41 +0200 Subject: [PATCH] Add ttf-hack recipe --- recipes/ttf-hack/recipe.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes/ttf-hack/recipe.sh diff --git a/recipes/ttf-hack/recipe.sh b/recipes/ttf-hack/recipe.sh new file mode 100644 index 000000000..21c2b8b9b --- /dev/null +++ b/recipes/ttf-hack/recipe.sh @@ -0,0 +1,35 @@ +VERSION=3.003 +TAR="https://github.com/source-foundry/Hack/releases/download/v$VERSION/Hack-v$VERSION-ttf.tar.xz" + +function recipe_version { + echo "$VERSION" + skip=1 +} + +function recipe_update { + echo "skipping update" + skip=1 +} + +function recipe_build { + echo "skipping build" + skip=1 +} + +function recipe_test { + echo "skipping test" + skip=1 +} + +function recipe_clean { + echo "skipping clean" + skip=1 +} + +function recipe_stage { + dest="$(realpath "$1")" + for file in *.ttf; do + install -D -m 644 "$file" "$dest/ui/fonts/Hack/$file" + done + skip=1 +}