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.4.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=77e33362b2d71e69666bd1da8b1887cb4dd6a9c9
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=(
'df170d855ac9d537d3c4bc508dcbda6648e97d3e33cdb1db1f42697b1795bb0f78759095f89418fab5fa509d38a66af4d5c7305a9b435b652ec2954446c01ce2'
'50b55c192019b423fe741e1309a80fee43ccf5e345dc88e28c77c46e0f6ec6d4c7def66df1767f450d300fabdbde64fb0e91206f74895e1ad9321ae2b000a57e'
'9bca24462056257069921e134d9bfc8c4b01b784c41d7f879731e4467819094e387c64f428d147a00c19d6f790c813faff96b2c5c71ae9b0c01cbc1b71a65e1a'
'71c1998ad50e0be152b49dae3c60ea5c38f527382174a4352bfecec055e38b1438d483f2c6ad704cdeeeb67753188ce94b36388410884f4f0f94835665ba6491'
'2a39e870aba3cb182136904eb1b81025fa64d182f3da01186a0ef106b0942f81e78c79682d62c9ad64a55272b0ca4f1846287dd9b0300ef8c71586ab480925c1'
'2c61f8d4909bf43098db836647c2989dfd38704b0d766beffa75707f6581bbf7cb8c3bf7d990c09f30c55a4db8eeb814922b63d56f182113c902cf2c8c01016a'
'2cf7cab8975f4b6882814278e5b189050a011846e3a18a1dc402c28aa5cb62a79829c6bd16b6a930640807c0415fe7f5513bc3ee80e6991a93cb65d3ef15d2eb'
'e9928c4f771c37f05d4058b0288ac64899fc73c61afd3f45d63e81bbd08072a14e37381ea7f9a951989b1738dcadcad8b66e268cfacf9a7936d6909361f3c677'
'ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84'
)
package() {
find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}