nerd-fonts-hack/PKGBUILD

44 lines
2.7 KiB
Bash
Raw Normal View History

2022-05-24 01:58:46 +09:00
# Maintainer: Yiyang Kang <kkyy%40kkyy.me>
2022-10-22 14:58:13 +09:00
# The fonts in this package was patched with '--careful' option.
2022-05-24 01:58:46 +09:00
2022-10-22 14:58:13 +09:00
pkgname=ttf-hack-nerd
epoch=2
2023-05-21 19:04:34 +09:00
pkgver=3.0.1
2022-10-22 14:58:13 +09:00
pkgrel=1
2022-05-24 01:58:46 +09:00
pkgdesc="Patched font Hack from the nerd-fonts library"
arch=("any")
url="https://github.com/ryanoasis/nerd-fonts"
license=('MIT')
depends=('fontconfig')
2022-10-22 14:58:13 +09:00
provides=('ttf-font-nerd')
2022-05-24 01:58:46 +09:00
conflicts=('nerd-fonts-git' 'nerd-fonts-complete')
2023-05-21 19:04:34 +09:00
_commit=39240bab3e1157e1ef3be9ae29339c18bb6c26bd
2022-05-24 01:58:46 +09:00
source=(
2023-05-06 12:04:24 +09:00
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFont-Bold.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFont-BoldItalic.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFont-Italic.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFont-Regular.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFontMono-Bold.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFontMono-BoldItalic.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFontMono-Italic.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/HackNerdFontMono-Regular.ttf"
2023-05-06 11:15:23 +09:00
"${url}/raw/v$pkgver/LICENSE"
2022-05-24 01:58:46 +09:00
)
b2sums=(
2023-05-21 19:04:34 +09:00
de269ca344695645f17d37b579288d846e93d802f38f866ca6ff68eae79f83ae713476b00e4c391ea1360ae8c5d541d4789e3492620b6f39d26104e4786fce0a
8bdcab6d5545ed013123a7208db9e273efb216643cb55f369cbe36d3427989cb20e1cc0eec2e33e3cdfce21f4d3ee6ecea434d838f997b9d4998b6c9c51ffd06
a47e54223191a25f589d60d495f6196db7d114ff8933eb5551063a3af357fb16c50713b5e557a438d86c255a04479e4b5b6ffa312884b9bfaa46366a77bf2ce4
554488f07cffa7ae3d793a9c3b997ad2e62dde6478deb56355bf2e99acdfefa28aa3865241728faa49b4a766bbb7d41ffc84ca78559a03b695f48245d0792033
33687a8bc3c39e1967876aa203e86cf2f8c5f8a7825920c3938d7a16207fbec3d74dfce1dbcd8bbb8419036144b22633358d40a6811d1f0033b4e0a4b0bfa81b
aca31430e8a31dc335cfc7a584b0da09207c13112e954c3e4f1a1bd3285bd4e29be148b79c25d1284d62cc0ba08960ef474b7c27074bfdd3c5e3e998e8dfb959
445428a725bd6284c050570a29984b10f72b7777ca80338b2bbfc8a2b02f56366b4034e72819ddb597e8eee97301b65571960a00ae3ecede1b7516bac812896a
ac874cebedeb3cc1e35d4fc77e916a13c2c2acebaa93dddf5895b17a78e71caee5cab6571568ea7730756b662fc90d05a92980a145672067e7f4beeb3b86957e
2023-05-06 11:15:23 +09:00
ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84
2022-05-24 01:58:46 +09:00
)
package() {
2023-05-06 11:15:23 +09:00
find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2022-05-24 01:58:46 +09:00
}