[arch-commits] Commit in ttf-ionicons/repos (3 files)
Andrea Scarpino
andrea at archlinux.org
Mon Jan 12 12:04:38 UTC 2015
Date: Monday, January 12, 2015 @ 13:04:37
Author: andrea
Revision: 125813
archrelease: copy trunk to community-any
Added:
ttf-ionicons/repos/community-any/
ttf-ionicons/repos/community-any/PKGBUILD
(from rev 125812, ttf-ionicons/trunk/PKGBUILD)
ttf-ionicons/repos/community-any/ttf-font.install
(from rev 125812, ttf-ionicons/trunk/ttf-font.install)
------------------+
PKGBUILD | 19 +++++++++++++++++++
ttf-font.install | 15 +++++++++++++++
2 files changed, 34 insertions(+)
Copied: ttf-ionicons/repos/community-any/PKGBUILD (from rev 125812, ttf-ionicons/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-01-12 12:04:37 UTC (rev 125813)
@@ -0,0 +1,19 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=ttf-ionicons
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='The premium icon font for Ionic Framework'
+arch=('any')
+license=('MIT')
+url='http://ionicons.com/'
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+install=ttf-font.install
+source=("https://github.com/driftyco/ionicons/raw/v${pkgver}/fonts/ionicons.ttf")
+md5sums=('0d39918c71ad0bf2db5766fe14828114')
+
+package() {
+ install -d "${pkgdir}"/usr/share/fonts/TTF
+ install -m644 ionicons.ttf "${pkgdir}"/usr/share/fonts/TTF/
+}
Copied: ttf-ionicons/repos/community-any/ttf-font.install (from rev 125812, ttf-ionicons/trunk/ttf-font.install)
===================================================================
--- community-any/ttf-font.install (rev 0)
+++ community-any/ttf-font.install 2015-01-12 12:04:37 UTC (rev 125813)
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -s
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list