From c61b2d58889b6b02f838f11c85ec5cebf362b828 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Mon, 10 Dec 2018 23:00:57 -0500 Subject: Link fontconfig orthography files in dejavu build The path contained in the symlink has been made relative for reproducibility reasons. Also, it just makes more sense to create the symlink during the download() action vs. build(). The `-f` flag was added to avoid an error if the link already exists (i.e., download() has been executed previously). --- projects/dejavu-fonts/dejavu-fonts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/dejavu-fonts/dejavu-fonts b/projects/dejavu-fonts/dejavu-fonts index 2c5f518b..d380235f 100755 --- a/projects/dejavu-fonts/dejavu-fonts +++ b/projects/dejavu-fonts/dejavu-fonts @@ -40,8 +40,10 @@ download() { done project_download_git "$project" "$repository" https://github.com/dejavu-fonts/dejavu-fonts.git "$@" - download_wrapper "$sources_path/resources" "${download_list[@]}" + + # Create a symlink to fontconfig's orthography files + ln -fs ../../fontconfig/fc-lang "$sources_path/resources/fc-lang" } download_check() { @@ -88,9 +90,6 @@ build() { mkdir -p "$build_path" - # Create a symlink to the orthography files provided by fontconfig - ln -s "$root/$SOURCES/fontconfig/fc-lang" "$sources_path/resources/fc-lang" - make -C "$sources_path" -j"$TASKS" cp "$sources_path/build"/[!.]*.ttf "$build_path" make -C "$sources_path" clean -- cgit v1.2.3-70-g09d2