nerd-fonts-hack/PKGBUILD

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=2
pkgver=3.0.0
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=68ed8bf33392e2cfe5e338bd56a8c86e5a5461a0
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=(
6a400357fe9131eff5a76a7a6750452f2205ad1207b94e03198e380585af8b126f54a7f70fd842941fbd75ca258960c0b30d5174090fc8d0fb4e92c06632756e
58af1cd8202b30c03cbe2016d1b7ed92f47e80a7df455e587863a6db13a561dd5d52e690d2522ab50a03d46e73e5dfe1f33887ba143db6857a46a8b15671f2d6
adb06a3b73248cb6b8a92ee681d2df761a574a0904269b5ff70e3bab11c03a4bef5643b37369e7e9cc2e8115b775eaa805f0e323edaafcd2621b359c4a9ef73c
7f3589c490294b5e34166efb7a5d3d6bd6465d8a6426564497fe7d5647987ec5209aaaea056446c9d9ed31a25ecba00b895c687f7cf7c2d61ee20b9049b326a6
8b7952cfcfa028517d227efa1ead61f3eed8ada5e8c48bc791237a2f508c1e86ce5efba4250018dc4ada9215996be474dce0ba055cc92bfdfef557678debb351
cfd1af68f0dfc224927761464d20a53debf68b795f4fa52a4fdc471ea15492a2094d0c520d3bf3ddf4318d74d887bb0a90d7145bb65cd0fe44018325113faeec
fce2d348dc268ed58d7d5a4dc9ad33faf4d9d9a8c75971c471a7006bc9c546058c0bd0f7f46a77d82f5a2ce0dc5602cb567482ccd0232935ba20ac69629e09e4
7241bc003a9633980fc9d19bbddb99ef92cb3e57d18d32211922ad73d01e86e0091794a428cadcc8d079dee5e61638d7fd008db4e3feb149627c196e9ba53203
ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84
)
package() {
find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}