diff options
author | James Zhu | 2015-12-25 13:24:58 -0600 |
---|---|---|
committer | James Zhu | 2015-12-25 13:24:58 -0600 |
commit | 75a5e7143750557c1aabc2dc7a93fc1fc93cae4e (patch) | |
tree | bfeb3ba8686f22968726e0aaa7413673b0588342 | |
parent | 71c1745c1893b77b1d42c2d2e2927fcccc485e67 (diff) | |
download | aur-75a5e7143750557c1aabc2dc7a93fc1fc93cae4e.tar.gz |
Add all font weights to package
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 11 insertions, 4 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Fri Dec 25 19:24:30 UTC 2015 pkgbase = otf-fira-code-git pkgdesc = Fira Code: monospaced font with programming ligatures. - pkgver = 0.6.r14.g3f41480 + pkgver = 1.101.r2.g6dbf892 pkgrel = 1 url = https://github.com/tonsky/FiraCode.git install = otf.install @@ -1,7 +1,7 @@ # Maintainer: ulis <fer.obbee at gmail dot com> pkgname=otf-fira-code-git -pkgver=0.6.r14.g3f41480 +pkgver=1.101.r2.g6dbf892 pkgrel=1 pkgdesc="Fira Code: monospaced font with programming ligatures." arch=('any') @@ -24,7 +24,12 @@ pkgver() { package() { cd "$srcdir/$_gitname" - local font='FiraCode-Regular.otf' - install -Dm644 "$font" "$pkgdir/usr/share/fonts/OTF/$font" + local weights=('Regular' 'Bold' 'Light' 'Medium' 'Retina') + local font='FiraCode' + + for weight in ${weights[*]}; do + local name="${font}-${weight}.otf" + install -Dm644 "$name" "$pkgdir/usr/share/fonts/OTF/$name" + done install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |