figlet: Fix figlet font dir (#25662)

By default, figlet looks for fonts in `/usr/local/share/figlet`, and if
it doesn't exist you get `figlet: standard: Unable to open font file`.

This fix changes the default font dir to the one installed in the
install prefix.
This commit is contained in:
Jordan Galby 2021-08-27 19:42:12 +02:00 committed by GitHub
parent 7fd4dee962
commit 2d97d877e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,3 +29,7 @@ def install(self, spec, prefix):
install(f, prefix.man6)
install_tree('./fonts', prefix.share.figlet)
@property
def build_targets(self):
return ['DEFAULTFONTDIR=' + self.prefix.share.figlet]