summaryrefslogtreecommitdiff
path: root/pcr/ttf-opensans
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 19:22:38 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 19:31:18 -0300
commitf49a2d01f261598543bc03d7d9910c93c977aebc (patch)
treed2d6c8aafc6d51cbab7134938098148a5f805520 /pcr/ttf-opensans
parent8267378aa359068a8aa7932afbdbb72e451a0af8 (diff)
downloadabslibre-f49a2d01f261598543bc03d7d9910c93c977aebc.tar.gz
abslibre-f49a2d01f261598543bc03d7d9910c93c977aebc.tar.bz2
abslibre-f49a2d01f261598543bc03d7d9910c93c977aebc.zip
ttf-opensans: add new package to [pcr] -> https://labs.parabola.nu/issues/901
Diffstat (limited to 'pcr/ttf-opensans')
-rw-r--r--pcr/ttf-opensans/PKGBUILD21
-rw-r--r--pcr/ttf-opensans/ttf-opensans.install17
2 files changed, 38 insertions, 0 deletions
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 <alucryd@archlinux.org>
+# Contributor (Arch): Hexchain Tong <i@hexchain.org>
+
+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: