44 lines
2.7 KiB
Bash
44 lines
2.7 KiB
Bash
# Maintainer: Yiyang Kang <kkyy%40kkyy.me>
|
|
# The fonts in this package was patched with '--careful' option.
|
|
|
|
pkgname=ttf-hack-nerd
|
|
epoch=1
|
|
pkgver=3.2.1
|
|
pkgrel=1
|
|
pkgdesc="Patched font Hack from the nerd-fonts library"
|
|
arch=("any")
|
|
url="https://github.com/ryanoasis/nerd-fonts"
|
|
license=('MIT')
|
|
depends=('fontconfig')
|
|
provides=('ttf-font-nerd')
|
|
conflicts=('nerd-fonts-git' 'nerd-fonts-complete')
|
|
_commit=77dcc814ba0d72fe34b4f3ed27cde99638336c8e
|
|
source=(
|
|
"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"
|
|
"${url}/raw/v$pkgver/LICENSE"
|
|
)
|
|
|
|
b2sums=(
|
|
8719e86e5b0c80ea9fbc0aca70fea1fb74021bcc40e427e4167c1c2417d76e7ef8d7b8faab9d61d9d4c80e3a201b9d763c5970b28ef30c4dd27752a88eab9e5c
|
|
59c7d989ae880f64b75d78c7609cb2053e3cb008fe0e4892249a95872aca5378d0e8d4851af1ce66c516c526f9d95a502c11f66ab0f0246fd8094f5d808c2dea
|
|
40e3596655bb758da7c0da534c03e247b1d3bd2074433de7981432d7be7c4cb60fdc51230fd318bd65e24381f2408025a5cb19ca3d21695711a93d0c5c30200e
|
|
1b5ce039e008c74e9a528cdd8b6628f48685fe94a533edbe4cf703b118d33825de10a056bb011eead0b1a9eefb9e8627c2b47bb53cad67ea38bfc673d03be82b
|
|
b2cf42950593994bc5860167d6a698cf7877b18d25de75f97f7120f9cc721a71a5c7f7cd44172c009a642a20b64d597736980ce67defd268157860a193783a93
|
|
2d709848e4c33c56e635f3881c48bfd9ea52be37c83dba768c77f55f9f30d1ddddbb0e82679b5a6ce9ea7c941a547e5259c5d6b073d34a0c49505ad254554535
|
|
a98503d080354d89be17b2afb0abc13769779a6abac667c00f33e536954cc59d92a137855fc0394bd6c389144bc0550b473bd6f551f25b003db8e77082710875
|
|
01a8fe591bf0d2d7bbce265cc4cbe6fe8cfd148f0e37e1031dffa50756692f3542896ebcacbc988bbc11f2e19275c41948591f504a5e9106ca7204c1ce80aae8
|
|
ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84
|
|
)
|
|
|
|
package() {
|
|
find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|