[arch-commits] Commit in fira-sans/repos/community-any (4 files)

Felix Yan felixonmars at archlinux.org
Sun Apr 23 17:40:49 UTC 2017


    Date: Sunday, April 23, 2017 @ 17:40:48
  Author: felixonmars
Revision: 224629

archrelease: copy trunk to community-any

Added:
  fira-sans/repos/community-any/PKGBUILD
    (from rev 224628, fira-sans/trunk/PKGBUILD)
Deleted:
  fira-sans/repos/community-any/PKGBUILD
  fira-sans/repos/community-any/otf.install
  fira-sans/repos/community-any/ttf.install

-------------+
 PKGBUILD    |   98 +++++++++++++++++++++++++++-------------------------------
 otf.install |   15 --------
 ttf.install |   15 --------
 3 files changed, 46 insertions(+), 82 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-04-23 17:40:28 UTC (rev 224628)
+++ PKGBUILD	2017-04-23 17:40:48 UTC (rev 224629)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=fira-sans
-pkgname=(ttf-fira-sans otf-fira-sans)
-pkgver=4.202
-pkgrel=1
-epoch=1
-pkgdesc="Mozilla's typeface designed for Firefox OS"
-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#tag=$pkgver"
-        ttf.install otf.install)
-md5sums=('SKIP'
-         '9d795e681b14231a6f234c8d2a6d9957'
-         '56bf7b135ff34a40513d5a832d882bff')
-
-function _package {
-    cd "$srcdir/Fira"
-
-    case "$1" in
-        ttf-fira-sans)
-            pkgdesc="Mozilla's sans-serif typeface designed for Firefox OS"
-            install=ttf.install
-            cd ttf
-            fonts=(FiraSans*.ttf)
-            installdir=TTF;;
-        otf-fira-sans)
-            pkgdesc="Mozilla's sans-serif typeface designed for Firefox OS"
-            install=otf.install
-            cd otf
-            fonts=(FiraSans*.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

Copied: fira-sans/repos/community-any/PKGBUILD (from rev 224628, fira-sans/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-04-23 17:40:48 UTC (rev 224629)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=fira-sans
+pkgname=(ttf-fira-sans otf-fira-sans)
+pkgver=4.202
+pkgrel=2
+epoch=1
+pkgdesc="Mozilla's typeface designed for Firefox OS"
+arch=('any')
+license=('custom:OFL')
+url='https://github.com/mozilla/Fira'
+depends=('fontconfig' 'xorg-font-utils')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mozilla/Fira/archive/$pkgver.tar.gz")
+sha512sums=('fec770fa038f2aa0654f9382f95aa1266a2655970f4c7755b237af9d1c09f47ce719f8daf3afc39812fc69448b9481ee0e2a1414f1d007ad70b4254c92950ebb')
+
+function _package {
+    cd Fira-$pkgver
+
+    case "$1" in
+        ttf-fira-sans)
+            pkgdesc="Mozilla's sans-serif typeface designed for Firefox OS"
+            cd ttf
+            fonts=(FiraSans*.ttf)
+            installdir=TTF;;
+        otf-fira-sans)
+            pkgdesc="Mozilla's sans-serif typeface designed for Firefox OS"
+            cd otf
+            fonts=(FiraSans*.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

Deleted: otf.install
===================================================================
--- otf.install	2017-04-23 17:40:28 UTC (rev 224628)
+++ otf.install	2017-04-23 17:40:48 UTC (rev 224629)
@@ -1,15 +0,0 @@
-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
-}

Deleted: ttf.install
===================================================================
--- ttf.install	2017-04-23 17:40:28 UTC (rev 224628)
+++ ttf.install	2017-04-23 17:40:48 UTC (rev 224629)
@@ -1,15 +0,0 @@
-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