post_install() {
echo -n "Updating font cache... "
- mkfontscale '$_F_fonts_dir'
- mkfontdir '$_F_fonts_dir'
- fc-cache -f '$_F_fonts_dir'
+ mkfontscale '@_F_fonts_dir@'
+ mkfontdir '@_F_fonts_dir@'
+ fc-cache -f '@_F_fonts_dir@'
echo "done."
}
###
if [ -z "$_F_fonts_subdir" ]; then
error '$_F_fonts_subdir is not defined.'
- Fdie
+ Fdie
fi
_F_fonts_dir="/usr/share/fonts/X11/$_F_fonts_subdir"
###
# == OVERWRITTEN VARIABLES
-# * install
+# * _F_genscriptlet_install
# * _F_cd_path
###
-install="src/fonts.install"
+_F_genscriptlet_install="$Fincdir/fonts.install"
_F_cd_path='.'
###
# == APPENDED VARIABLES
# * makedepends
+# * depends
# * rodepends
-# * options
+# * _F_genscriptlet_hooks
###
makedepends=(${makedepends[@]} 'bdftopcf')
depends=(${depends[@]} 'mkfontdir')
rodepends=(${rodepends[@]} 'mkfontscale' 'fontconfig')
-options=(${options[@]} 'genscriptlet')
+_F_genscriptlet_hooks=(${_F_genscriptlet_hooks[@]} 'fonts_genscriptlet_hook')
+
+Finclude genscriptlet
###
# == PROVIDED FUNCTIONS
+# * fonts_genscriptlet_hook
# * Fbuild_fonts
###
+fonts_genscriptlet_hook()
+{
+ Freplace '_F_fonts_dir' "$1"
+}
+
Fbuild_fonts() {
# find and install all font extensions we support
gzip -9 "$i" || Fdie
done
- # generate the install script
- cp "$Fincdir/fonts.install" "$Fsrcdir" || Fdie
- Fsed '$_F_fonts_dir' "$_F_fonts_dir" "$Fsrcdir/fonts.install"
-
+ Fgenscriptlet
}
###