summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23fd95e625152ae659a3e421454ccb9f85184418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: dalz <dalz @t disroot d0t org>

pkgname=otf-nerd-fonts-fira-code
pkgver=2.0.0
pkgrel=3
pkgdesc="Monospaced font with programming ligatures. Patched with Nerd Fonts icons."
arch=('any')
url='https://github.com/ryanoasis/nerd-fonts'
license=('MIT')
depends=('fontconfig')
conflicts=('nerd-fonts-fira-code' 'nerd-fonts-complete' 'nerd-fonts-git')
source=("https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FiraCode.zip"
        "https://github.com/ryanoasis/nerd-fonts/raw/v$pkgver/LICENSE")
md5sums=('e5bff5da34eb6d16fb20226047c5755c'
         '1b95f7668f3a4440b0d404e8dc3ccd9c')

package() {
        install -d "$pkgdir/usr/share/fonts/OTF"
        install -d "$pkgdir/usr/share/licenses/$pkgname"
        find "$srcdir" -not -name "*Windows Compatible*" -a -name "*.otf" \
            -exec install -Dm644 {} "$pkgdir/usr/share/fonts/OTF" \;
        install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}