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 /PKGBUILD | |
parent | 71c1745c1893b77b1d42c2d2e2927fcccc485e67 (diff) | |
download | aur-75a5e7143750557c1aabc2dc7a93fc1fc93cae4e.tar.gz |
Add all font weights to package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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" } |