diff --git a/srcpkgs/steam-fonts/INSTALL b/srcpkgs/steam-fonts/INSTALL new file mode 100644 index 00000000000..301110cb17b --- /dev/null +++ b/srcpkgs/steam-fonts/INSTALL @@ -0,0 +1,9 @@ +case "${ACTION}" in +post) + echo -n "Updating font cache... " + fc-cache -fs >/dev/null + mkfontscale /usr/share/fonts/steam-fonts + mkfontdir /usr/share/fonts/steam-fonts + echo "done" + ;; +esac diff --git a/srcpkgs/steam-fonts/template b/srcpkgs/steam-fonts/template new file mode 100644 index 00000000000..0c7611faea7 --- /dev/null +++ b/srcpkgs/steam-fonts/template @@ -0,0 +1,25 @@ +# Template file for 'steam-fonts' +pkgname=steam-fonts +version=1.0.0 +revision=1 +noarch=yes +hostmakedepends="unzip" +depends="fontconfig mkfontscale mkfontdir" +short_desc="Fonts to fix scrambled or missing text in steam menus" +maintainer="Andrea Brancaleoni " +license="proprietary" +homepage="https://support.steampowered.com/kb_article.php?ref=1974-YFKL-4947" +distfiles="https://support.steampowered.com/downloads/1974-YFKL-4947/SteamFonts.zip" +checksum=a03bcc9581f2896cac39967633fc43546af5ed9d73d505a10cae4016797dfeb1 + +do_extract() { + mkdir -p ${wrksrc} + cd ${wrksrc} + unzip ${XBPS_HOSTDIR}/sources/${pkgname}-${version}/SteamFonts.zip +} + +do_install() { + vmkdir usr/share/fonts/steam-fonts + vcopy *.ttf usr/share/fonts/steam-fonts + vcopy *.TTF usr/share/fonts/steam-fonts +}