From f49a2d01f261598543bc03d7d9910c93c977aebc Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 26 Dec 2015 19:22:38 -0300 Subject: ttf-opensans: add new package to [pcr] -> https://labs.parabola.nu/issues/901 --- pcr/ttf-opensans/PKGBUILD | 21 +++++++++++++++++++++ pcr/ttf-opensans/ttf-opensans.install | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 pcr/ttf-opensans/PKGBUILD create mode 100644 pcr/ttf-opensans/ttf-opensans.install (limited to 'pcr/ttf-opensans') diff --git a/pcr/ttf-opensans/PKGBUILD b/pcr/ttf-opensans/PKGBUILD new file mode 100644 index 000000000..de2156082 --- /dev/null +++ b/pcr/ttf-opensans/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer (Arch): Maxime Gauduin +# Contributor (Arch): Hexchain Tong + +pkgname=ttf-opensans +pkgver=1.10 +pkgrel=1 +pkgdesc='Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type Director of Ascender Corp.' +arch=('any') +url='http://en.wikipedia.org/wiki/Open_Sans' +license=('Apache') +depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils') +install='ttf-opensans.install' +source=("http://pkgbuild.com/~alucryd/ttf-opensans-${pkgver}.zip") +sha256sums=('f14979b4a358311e51da601a2debb7f21a639912fa06d88825056c41d792871e') + +package() { + install -dm 755 "${pkgdir}"/usr/share/fonts/TTF + install -m 644 *.ttf "${pkgdir}"/usr/share/fonts/TTF/ +} + +# vim: ts=2 sw=2 et: diff --git a/pcr/ttf-opensans/ttf-opensans.install b/pcr/ttf-opensans/ttf-opensans.install new file mode 100644 index 000000000..cbeabfec8 --- /dev/null +++ b/pcr/ttf-opensans/ttf-opensans.install @@ -0,0 +1,17 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + +# vim: ts=2 sw=2 et: -- cgit v1.2.3