[arch-commits] Commit in ttf-hack/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Feb 8 00:42:19 UTC 2016


    Date: Monday, February 8, 2016 @ 01:42:19
  Author: foutrelis
Revision: 160663

archrelease: copy trunk to community-staging-any

Added:
  ttf-hack/repos/community-staging-any/
  ttf-hack/repos/community-staging-any/PKGBUILD
    (from rev 160662, ttf-hack/trunk/PKGBUILD)
  ttf-hack/repos/community-staging-any/ttf-hack.install
    (from rev 160662, ttf-hack/trunk/ttf-hack.install)

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

Copied: ttf-hack/repos/community-staging-any/PKGBUILD (from rev 160662, ttf-hack/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-02-08 00:42:19 UTC (rev 160663)
@@ -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=019
+pkgname=ttf-hack
+pkgver=${_pkgver_major}.${_pkgver_minor}
+pkgrel=2
+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=('64e6faed79190636a169b7c389feb5ee5be48230512fe6e374a58d5ffca1193a')
+
+package() {
+  install -Dm644 -t "$pkgdir/usr/share/fonts/TTF" "$srcdir"/Hack-*.ttf
+}

Copied: ttf-hack/repos/community-staging-any/ttf-hack.install (from rev 160662, ttf-hack/trunk/ttf-hack.install)
===================================================================
--- community-staging-any/ttf-hack.install	                        (rev 0)
+++ community-staging-any/ttf-hack.install	2016-02-08 00:42:19 UTC (rev 160663)
@@ -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