[arch-commits] Commit in (5 files)
Lukas Fleischer
lfleischer at archlinux.org
Tue Dec 1 20:36:41 UTC 2015
Date: Tuesday, December 1, 2015 @ 21:36:41
Author: lfleischer
Revision: 148088
Initial import of ttf-hack
Added:
ttf-hack/
ttf-hack/.SRCINFO
ttf-hack/.gitignore
ttf-hack/PKGBUILD
ttf-hack/ttf-hack.install
------------------+
.SRCINFO | 16 ++++++++++++++++
.gitignore | 5 +++++
PKGBUILD | 21 +++++++++++++++++++++
ttf-hack.install | 16 ++++++++++++++++
4 files changed, 58 insertions(+)
Added: ttf-hack/.SRCINFO
===================================================================
--- ttf-hack/.SRCINFO (rev 0)
+++ ttf-hack/.SRCINFO 2015-12-01 20:36:41 UTC (rev 148088)
@@ -0,0 +1,16 @@
+pkgbase = ttf-hack
+ pkgdesc = Source Foundry Hack is is hand groomed and optically balanced typeface to be your go-to code face based on the Bitstream Vera Mono font.
+ pkgver = 2.018
+ pkgrel = 1
+ url = http://sourcefoundry.org/hack/
+ install = ttf-hack.install
+ arch = any
+ license = SIL Open Font License 1.1 and Bitstream Vera License
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-font-utils
+ source = https://github.com/chrissimpkins/Hack/releases/download/v2.018/Hack-v2_018-ttf.zip
+ sha256sums = 7dbafae9b1f6c5b0763b227e51c5485cc4ef6d9b0fec4914622ddb9fe235334c
+
+pkgname = ttf-hack
+
Added: ttf-hack/.gitignore
===================================================================
--- ttf-hack/.gitignore (rev 0)
+++ ttf-hack/.gitignore 2015-12-01 20:36:41 UTC (rev 148088)
@@ -0,0 +1,5 @@
+*.xz
+*.ttf
+pkg/
+src/
+*.zip
Added: ttf-hack/PKGBUILD
===================================================================
--- ttf-hack/PKGBUILD (rev 0)
+++ ttf-hack/PKGBUILD 2015-12-01 20:36:41 UTC (rev 148088)
@@ -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=018
+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=('7dbafae9b1f6c5b0763b227e51c5485cc4ef6d9b0fec4914622ddb9fe235334c')
+
+package() {
+ install -Dm644 -t "$pkgdir/usr/share/fonts/TTF" "$srcdir"/Hack-*.ttf
+}
Added: ttf-hack/ttf-hack.install
===================================================================
--- ttf-hack/ttf-hack.install (rev 0)
+++ ttf-hack/ttf-hack.install 2015-12-01 20:36:41 UTC (rev 148088)
@@ -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