[arch-commits] Commit in (6 files)

Felix Yan fyan at archlinux.org
Wed Jul 15 02:25:11 UTC 2015


    Date: Wednesday, July 15, 2015 @ 04:25:11
  Author: fyan
Revision: 136933

addpkg: fira-mono 2:3.204-1

Added:
  fira-mono/
  fira-mono/repos/
  fira-mono/trunk/
  fira-mono/trunk/PKGBUILD
  fira-mono/trunk/otf.install
  fira-mono/trunk/ttf.install

-------------+
 PKGBUILD    |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 otf.install |   15 +++++++++++++++
 ttf.install |   15 +++++++++++++++
 3 files changed, 83 insertions(+)

Added: fira-mono/trunk/PKGBUILD
===================================================================
--- fira-mono/trunk/PKGBUILD	                        (rev 0)
+++ fira-mono/trunk/PKGBUILD	2015-07-15 02:25:11 UTC (rev 136933)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=fira-mono
+pkgname=(ttf-fira-mono otf-fira-mono)
+pkgver=3.204
+_commit=54736c99038cc308a5dbbddc2101630f26a6b333
+pkgrel=1
+epoch=2
+pkgdesc="Mozilla's typeface designed for Firefox OS (Monospace)"
+arch=('any')
+license=('custom:OFL')
+url='https://github.com/mozilla/Fira'
+makedepends=('git')
+depends=('fontconfig' 'xorg-font-utils')
+source=("git+https://github.com/mozilla/Fira.git#commit=$_commit"
+        ttf.install otf.install)
+md5sums=('SKIP'
+         '9d795e681b14231a6f234c8d2a6d9957'
+         '56bf7b135ff34a40513d5a832d882bff')
+
+function _package {
+    cd "$srcdir/Fira"
+
+    case "$1" in
+        ttf-fira-mono)
+            pkgdesc="Mozilla's monospace typeface designed for Firefox OS"
+            install=ttf.install
+            cd ttf
+            fonts=(FiraMono-*.ttf)
+            installdir=TTF;;
+        otf-fira-mono)
+            pkgdesc="Mozilla's monospace typeface designed for Firefox OS"
+            install=otf.install
+            cd otf
+            fonts=(FiraMono-*.otf)
+            installdir=OTF;;
+    esac
+
+    # Prepare destination directory
+    install -dm755 "$pkgdir/usr/share/fonts/$installdir"
+
+    # Install fonts
+    for font in "${fonts[@]}"; do
+        install -m644 "$font" "$pkgdir/usr/share/fonts/$installdir"
+    done
+
+    install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"   
+}
+
+for _pkgname in ${pkgname[@]}; do
+    eval "function package_$_pkgname() { _package $_pkgname; }"
+done


Property changes on: fira-mono/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: fira-mono/trunk/otf.install
===================================================================
--- fira-mono/trunk/otf.install	                        (rev 0)
+++ fira-mono/trunk/otf.install	2015-07-15 02:25:11 UTC (rev 136933)
@@ -0,0 +1,15 @@
+post_install() {
+    echo -n "Updating font cache... "
+    fc-cache -s > /dev/null
+    mkfontscale /usr/share/fonts/OTF
+    mkfontdir /usr/share/fonts/OTF
+    echo "done."
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+post_remove() {
+    post_install $1
+}

Added: fira-mono/trunk/ttf.install
===================================================================
--- fira-mono/trunk/ttf.install	                        (rev 0)
+++ fira-mono/trunk/ttf.install	2015-07-15 02:25:11 UTC (rev 136933)
@@ -0,0 +1,15 @@
+post_install() {
+    echo -n "Updating font cache... "
+    fc-cache -s > /dev/null
+    mkfontscale /usr/share/fonts/TTF
+    mkfontdir /usr/share/fonts/TTF
+    echo "done."
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+post_remove() {
+    post_install $1
+}



More information about the arch-commits mailing list