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
|
2022-09-20 22:50:41 +09:00
|
|
|
pkgver=2.2.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')
|
2022-09-20 22:50:41 +09:00
|
|
|
_commit=d3e23fcf2cf9dc8737cbe62c82d03ff99a1ec6af
|
2022-05-24 01:58:46 +09:00
|
|
|
source=(
|
2022-05-27 02:51:45 +09:00
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Regular%20Nerd%20Font%20Complete.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Regular%20Nerd%20Font%20Complete%20Mono.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Italic%20Nerd%20Font%20Complete.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Italic%20Nerd%20Font%20Complete%20Mono.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Bold%20Nerd%20Font%20Complete.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Bold%20Nerd%20Font%20Complete%20Mono.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Bold%20Italic%20Nerd%20Font%20Complete.ttf"
|
|
|
|
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/Hack/Hack%20Bold%20Italic%20Nerd%20Font%20Complete%20Mono.ttf"
|
2022-05-24 01:58:46 +09:00
|
|
|
"${url}/raw/v$pkgver/LICENSE"
|
|
|
|
)
|
|
|
|
|
|
|
|
b2sums=(
|
2022-09-20 22:50:41 +09:00
|
|
|
7bcaa43ff967c4abd0390fd57b48a3f9a67816a2b461db0a8732f59992051b829341cafa2189d46f1581d977cfe5c329d50925c73e4382da65d0ae84f961f9bd
|
|
|
|
f0e524a28f156186c128f69c1635961feb2570f5791725f43c4b960674b3d8289576a14266f7a3f3a4b3a49710c948f2d4686e3b5fbb42a81cb460b07b374883
|
|
|
|
7470f5b260415696ad81c5811a203ecb544bcf5818a058448698eaef2ca7c0154e5217a702a6b06aeb2acc619e0862120d1eea869f7a7f3281f47723cda5b172
|
|
|
|
020f565f20ef8de3fbc7882663de9a55cc9789cc05c2c80a5e9208a6d588b742faa48d947728d1e9db269aeb99d38f526380414bf1fe98ecde31fc1d07d8c640
|
|
|
|
ca603b0be419f47f8541989f5e81b4669518d0c70dce00a6cb77327d147fc68d48ccc994d9070267fb0b0748d7c6e107249619c5eeb68f863bafaaca046f4a1f
|
|
|
|
1b0f78ba6c7247e26a1015d15ac58905f8ca9566ba0a7b0fddf27612e78d7216d0e13f02de2a0fce8631bb22a7e7e1b6134f3fde0ce74422e38cdfd9d51d5387
|
|
|
|
c1e3f4350a602609bfcfd6392943ac415c4178bc679dcce8a9e83a22c65aa6e005b44ffd5d35ba1d638aec235730d1ab6e16f0178890075344e0b9701ccb8b6f
|
|
|
|
7a86fc17d2fd8a06e36052b313c7bd26c1783ceb7fd353939fd241892511a34732aa332179910dddb9dfae801e6818ffbacd7042b02f962586db2d971e7f0a14
|
2022-05-24 01:58:46 +09:00
|
|
|
ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84
|
|
|
|
)
|
|
|
|
|
|
|
|
package() {
|
|
|
|
for f in *.ttf; do
|
|
|
|
mv "$f" "${f//%20/ }"
|
|
|
|
done
|
|
|
|
|
|
|
|
find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|