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
2023-07-23 09:53:19 +09:00
epoch=1
pkgver=3.0.2
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-07-23 09:53:19 +09:00
_commit=9b462601da6880836ea809ec43c55ec4b79560b6
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-07-23 09:53:19 +09:00
8ab93660d993a6f51cf91fa421b2f1ec97bdd0749ee6518ae85e98b2f62f7400bc689710987ed51fb2f8ddbefd7948f346ba220c670b5da72ea157c51fe651f3
93055e96254f3fe93112af0dfd66d3c2589761cb0feeff1d72f8df5d16a651c6d39f6042b61eff38fdbe0110399347a6d24a5bfe96b1aaeed0e9f1b86357b7e3
7c72b1cb9c27e7751f391e685ab1f0f99d596ce68c029d6c1aef94c827b350d04202bc0b84077b72bfc0df5a73b033a3b2716a99052386baf02154ca11e5ade1
bb265994b415bb6a28b786923bf0cf214963d8ecf17c36c0c7ab9d7150ab37726cd873569ae9d7bc43d818e5cec32379ce20aee5f0edd33d6fddae2d586c3086
dd18dd8dcf8bc6e33ac3b67f213b91fc8b879a55cd737ea50a6941d46d8ee6aaae81157b82bd04924b8b097842f2aa9254300988ca1f96bb03858919dc5e0fac
4204ff940ed4d009758700b79306cfe65033703440cd68637ecd0cc1af95f132645c6835dd32e15199014c826624cde66ef16abef9ada635bc2b8d67c91725b7
f02916f69c1f926a166a03b6cd5d67223676a84f4d9421ae66ad9dda670257706b84990b192ef8c21bef319bbf5d7ed739bfe4ad7d2467112b963481c142b110
73e6a56f633d588e83d5551f28bdc89829d7c06507e7bc884146bd21e3df7522ca80749aace42fc6a3c2c942166f33d36d6c9591b46dc5e255e42e8fd6caad7c
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
}