From f7111ce8075e94b0457106e9bef907144f3bd75a Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sat, 16 May 2015 15:46:22 +0200 Subject: [PATCH] New package: steam-fonts-1.0.0 --- srcpkgs/steam-fonts/INSTALL | 9 +++++++++ srcpkgs/steam-fonts/template | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/steam-fonts/INSTALL create mode 100644 srcpkgs/steam-fonts/template diff --git a/srcpkgs/steam-fonts/INSTALL b/srcpkgs/steam-fonts/INSTALL new file mode 100644 index 0000000000..301110cb17 --- /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 0000000000..0c7611faea --- /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 +}