summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: