[arch-commits] Commit in (5 files)

Antonio Rojas arojas at archlinux.org
Thu Sep 15 15:35:54 UTC 2016


    Date: Thursday, September 15, 2016 @ 15:35:54
  Author: arojas
Revision: 276487

community2extra: Moving ttf-hack from community to extra

Added:
  ttf-hack/
  ttf-hack/repos/
  ttf-hack/trunk/
  ttf-hack/trunk/PKGBUILD
  ttf-hack/trunk/ttf-hack.install

------------------+
 PKGBUILD         |   21 +++++++++++++++++++++
 ttf-hack.install |   16 ++++++++++++++++
 2 files changed, 37 insertions(+)

Added: ttf-hack/trunk/PKGBUILD
===================================================================
--- ttf-hack/trunk/PKGBUILD	                        (rev 0)
+++ ttf-hack/trunk/PKGBUILD	2016-09-15 15:35:54 UTC (rev 276487)
@@ -0,0 +1,21 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Markus Tacker <m at cto.hiv>
+# Contributor: Peter Hoeg <peter at hoeg.com>
+
+_pkgver_major=2
+_pkgver_minor=020
+pkgname=ttf-hack
+pkgver=${_pkgver_major}.${_pkgver_minor}
+pkgrel=1
+pkgdesc='A hand groomed and optically balanced typeface based on Bitstream Vera Mono'
+arch=('any')
+license=('SIL Open Font License 1.1 and Bitstream Vera License')
+url="http://sourcefoundry.org/hack/"
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+install=$pkgname.install
+source=("https://github.com/chrissimpkins/Hack/releases/download/v${pkgver}/Hack-v${_pkgver_major}_${_pkgver_minor}-ttf.zip")
+sha256sums=('048566ae79c580f725b68340d9d2a3b0fa125fb08c1d30cf0a7c327d07ab739a')
+
+package() {
+  install -Dm644 -t "$pkgdir/usr/share/fonts/TTF" "$srcdir"/Hack-*.ttf
+}


Property changes on: ttf-hack/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: ttf-hack/trunk/ttf-hack.install
===================================================================
--- ttf-hack/trunk/ttf-hack.install	                        (rev 0)
+++ ttf-hack/trunk/ttf-hack.install	2016-09-15 15:35:54 UTC (rev 276487)
@@ -0,0 +1,16 @@
+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 $1
+}
+
+post_remove() {
+  post_install $1
+}
+



More information about the arch-commits mailing list