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=1
pkgver=3.1.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=af4bbc6a78661fdaacd5900faa340ae34f971fb8
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=(
14633004469c0572c5117b266d1bed70eaf6ec3bced8554eb3cd3f85ae96ff2ef0341dee0901943e92f6b4f751859d77bd65451020916e99c9459367a56a0ae5
9ec0a40091e69f133ae7bfbc2e534540c5026059857828ab5fcb1abc067113105bda530a513465b26d4162b54e462bfc8217e2639764a7e40aa3fef2452d9f37
96dd23e920bb71eb5cb971e666522f53bb749bea3cb2b5af5de535f22d0af105e04d2523a4826a1c60b7b8e4d7fd55ea9229a829f7e78becbf6585ce4cf0c2cc
9f0f41c22a8fee6b9e10cf451e1a761ecfc6807eaf97dbdaefbb7d32dc84eae8d0c34d0fb142c37b8edd18fadad09c1944c2eb002fc4b378fcecb2cf8c9884c6
e93114ef700c97d0b921737ae474f34a8dd7fdc955c99da1b0d8a54b1f34319831d8b84c7e1fd54528604c4bf6eee183a80b715f4445904d46cf50f43fb92f0f
adef1aa0f1c3cd6239f6f1848d4ef4d64c4c7a536fd4f040a33622dd038630088f20af8a380453d0c286bbc38ce77bfcccdce6005b2fc1bf5d08d79dd95597a7
a5e13344e29643e6b66ada1ddae45bd7468400b6f107ce14bdb641f398fd0091bb74d8d06ec86062e6225c2fdcc8322c0fe535d6f34931012bcef87a6051740d
cb5211e54782c1033b20e8c7ec4596c37b6286b62507bc6a12306f1d8f5ca120fd1c79c4696b224eef87681739d48adddf73daec1eb03bd4abad924f8b6fd00b
ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84
)
package() {
find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}