summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2771268eba7a7f296405fe5f1efc78747b4a377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Maintainer: Super Bo <supernbo@gmail.com>
pkgname=nerd-fonts-complete
pkgver=0.8.0
pkgrel=1
pkgdesc="collection of over 20 patched fonts (complete variant) for powerline, devicons, and vim-devicons: includes Droid Sans, Meslo, AnonymousPro, ProFont, Inconsolta, and many more"
arch=('any')
url='https://github.com/ryanoasis/nerd-fonts'
_url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/$pkgver/patched-fonts"
license=('MIT')
depends=('fontconfig' 'xorg-font-utils')
conflicts=(nerd-fonts-git)
install=$pkgname.install
source=(
    "$_url/3270/Medium/complete/3270-Medium%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/3270/Medium/complete/3270-Medium%20Nerd%20Font%20Complete.otf"
    "$_url/3270/Narrow/complete/3270%20Narrow%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/3270/Narrow/complete/3270%20Narrow%20Nerd%20Font%20Complete.otf"
    "$_url/AurulentSansMono/complete/AurulentSansMono-Regular%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/AurulentSansMono/complete/AurulentSansMono-Regular%20Nerd%20Font%20Complete.otf"
    "$_url/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/FiraCode/Bold/complete/Fura%20Code%20Bold%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraCode/Bold/complete/Fura%20Code%20Bold%20Nerd%20Font%20Complete.otf"
    "$_url/FiraCode/Light/complete/Fura%20Code%20Light%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraCode/Light/complete/Fura%20Code%20Light%20Nerd%20Font%20Complete.otf"
    "$_url/FiraCode/Medium/complete/Fura%20Code%20Medium%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraCode/Medium/complete/Fura%20Code%20Medium%20Nerd%20Font%20Complete.otf"
    "$_url/FiraCode/Regular/complete/Fura%20Code%20Regular%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraCode/Regular/complete/Fura%20Code%20Regular%20Nerd%20Font%20Complete.otf"
    "$_url/FiraCode/Retina/complete/Fura%20Code%20Retina%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraCode/Retina/complete/Fura%20Code%20Retina%20Nerd%20Font%20Complete.otf"
    "$_url/FiraMono/Bold/complete/Fura%20Mono%20Bold%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraMono/Bold/complete/Fura%20Mono%20Bold%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/FiraMono/Medium/complete/Fura%20Mono%20Medium%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraMono/Medium/complete/Fura%20Mono%20Medium%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/FiraMono/Regular/complete/Fura%20Mono%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/FiraMono/Regular/complete/Fura%20Mono%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Hermit/Bold/complete/Hurmit%20Bold%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Hermit/Bold/complete/Hurmit%20Bold%20Nerd%20Font%20Complete.otf"
    "$_url/Hermit/Light/complete/Hurmit%20Light%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Hermit/Light/complete/Hurmit%20Light%20Nerd%20Font%20Complete.otf"
    "$_url/Hermit/Medium/complete/Hurmit%20Medium%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Hermit/Medium/complete/Hurmit%20Medium%20Nerd%20Font%20Complete.otf"
    "$_url/Inconsolata/complete/Inconsolata%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Inconsolata/complete/Inconsolata%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Meslo/L-DZ/complete/Meslo%20LG%20L%20DZ%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Meslo/L-DZ/complete/Meslo%20LG%20L%20DZ%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Meslo/L/complete/Meslo%20LG%20L%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Meslo/L/complete/Meslo%20LG%20L%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Meslo/M-DZ/complete/Meslo%20LG%20M%20DZ%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Meslo/M-DZ/complete/Meslo%20LG%20M%20DZ%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Meslo/M/complete/Meslo%20LG%20M%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Meslo/M/complete/Meslo%20LG%20M%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Meslo/S-DZ/complete/Meslo%20LG%20S%20DZ%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Meslo/S-DZ/complete/Meslo%20LG%20S%20DZ%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "$_url/Meslo/S/complete/Meslo%20LG%20S%20Regular%20for%20Powerline%20Nerd%20Font%20Complete%20Mono.otf"
    "$_url/Meslo/S/complete/Meslo%20LG%20S%20Regular%20for%20Powerline%20Nerd%20Font%20Complete.otf"
    "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/$pkgver/LICENSE"
)
md5sums=('f7676f616df28c04d84f2c69adc0610d'
    'd30ce70ccbb5a9ba41dce75b169edfd2'
    'a8eea3b44421d644838b10382549a499'
    '2ccf3beccdc1d2a285d0de2bd3ae8ae9'
    '70143819c786a6293176fe14b8cb9c0a'
    'e6067fc5ced57f3937214a06c39c17be'
    '1fe3f219292d884f579515209fe2d222'
    '6fbca9a38150f044d071c70ff05ecee6'
    '7f6b395c4562e472c8865106f2dfdc38'
    '26a4eac62df8e6b8461bcea85f829af0'
    '2e20f10a2606f83b99f51ff873f91eb8'
    'bf7177ae7baf03e7ed0f65acc57bfef5'
    '9da34f1d78aece250a25223aad465648'
    '45510e6946b20ab3e207910da0d3d2f6'
    'c5d10d58b42d73dcd461e61c2953b77e'
    '2e7ddbd65d4f2201418d8272a3d1c646'
    'ed98cc8d26b76a7330ed44936ad224e5'
    '028d65b3717d23a003633e388ee5c0cb'
    '8df6ebdcdfe8fe882dc245e7447fc2e9'
    'd46640d12b2ce370a0e1658ed1c61192'
    '85dac4371b110acafad36a8015094301'
    '107f23d5aecf4aeb503c5557caaa3a5b'
    '3a7ae36ea831727897bc64d83ecc39f2'
    'd6ea1cf847c1817b6a949dde5296115a'
    '70d627ca2ab04530155f3d42137b15b8'
    'e71c7aa27a7cf2833e8adb519a6016d1'
    '158da52c07a3efda267203df11613858'
    '65c121db637ebca8dd527d614caea8de'
    '4f030945f32dcc6c337d78a12247d90a'
    '07137d4f15cb23af2f5e1825948f59da'
    '1596d05214b737d5c6a4f3ad9f0db54f'
    'fffd2d2508c1ddfbc50b64cd5c6d8c53'
    '1dc314cb4da21a29e25749a82871e63c'
    '98a51ce356a1a47693b763c456c77cc5'
    '1ab2487613be6b594498d3a0bdc1743c'
    'abf9a40bfdc968f8a712f11d611ceba2'
    '53e8439142a0165f882ce3efd72a838a'
    'ea302039a4a1520531001ec3046df270'
    'ec61fa7465cfbd9f173478426cd37c29'
    'cb55b3695f789b2bc0e8a3d1ef30e5c0'
    'd1b81040683249438fd2dd4cb117e634'
    '2173d3c61fe212afdb817477264876e3'
    'd05113aceba8d9829129ac3c8a165499'
    'c5bd07d84e7f99cc4ce5fc2714a1e19f'
    '1ac517b2f87f57fb806d71676c1cfc01'
)

build() {
    for f in *%20*.otf; do
        mv "$f" "${f//\%20/ }"
    done
}

package() {
    install -d ${pkgdir}/usr/share/fonts/OTF/
    install -d ${pkgdir}/usr/share/licenses/${pkgname}
    install -Dm644 ${srcdir}/*.otf ${pkgdir}/usr/share/fonts/OTF
    install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
}